添加表和字段
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class JudgeRule : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsCalculatedJudge",
|
||||
table: "VisitTask",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "JudgeGenerateEnum",
|
||||
table: "ReadingQuestionCriterionTrial",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "JudgeModeEnum",
|
||||
table: "ReadingQuestionCriterionTrial",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "JudgeRuleEnum",
|
||||
table: "ReadingQuestionCriterionTrial",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ReadingQuestionVisitJudgeRule",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ReadingQuestionId = table.Column<Guid>(type: "uniqueidentifier", nullable: false, comment: "问题Id"),
|
||||
VisitNum = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||
AnswerGroup = table.Column<string>(type: "nvarchar(max)", nullable: false, comment: "答案分组"),
|
||||
AnswerCombination = table.Column<string>(type: "nvarchar(max)", nullable: false, comment: "答案组合"),
|
||||
JudgeType = table.Column<int>(type: "int", nullable: false, comment: "裁判类型"),
|
||||
JudgeDifferenceValue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "裁判百分比或绝对值的相差值"),
|
||||
JudgeDifferenceType = table.Column<int>(type: "int", nullable: false, comment: "裁判百分比或绝对值的相差值匹配规则"),
|
||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ReadingQuestionVisitJudgeRule", x => x.Id)
|
||||
.Annotation("SqlServer:Clustered", false);
|
||||
|
||||
},
|
||||
comment: "项目阅片访视裁判规则");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ReadingQuestionVisitJudgeRule_CreateTime",
|
||||
table: "ReadingQuestionVisitJudgeRule",
|
||||
column: "CreateTime")
|
||||
.Annotation("SqlServer:Clustered", true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "ReadingQuestionVisitJudgeRule");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsCalculatedJudge",
|
||||
table: "VisitTask");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JudgeGenerateEnum",
|
||||
table: "ReadingQuestionCriterionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JudgeModeEnum",
|
||||
table: "ReadingQuestionCriterionTrial");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JudgeRuleEnum",
|
||||
table: "ReadingQuestionCriterionTrial");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6834,6 +6834,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
.HasColumnType("bit")
|
||||
.HasComment("eCRF报告是否显示在图像页面");
|
||||
|
||||
b.Property<int>("JudgeGenerateEnum")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("JudgeModeEnum")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("JudgeRuleEnum")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("ReadingInfoSignTime")
|
||||
.HasColumnType("datetime2")
|
||||
.HasComment("阅片信息签名时间");
|
||||
@@ -7466,6 +7475,62 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionVisitJudgeRule", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.PrimitiveCollection<string>("AnswerCombination")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)")
|
||||
.HasComment("答案组合");
|
||||
|
||||
b.PrimitiveCollection<string>("AnswerGroup")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)")
|
||||
.HasComment("答案分组");
|
||||
|
||||
b.Property<DateTime>("CreateTime")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid>("CreateUserId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("JudgeDifferenceType")
|
||||
.HasColumnType("int")
|
||||
.HasComment("裁判百分比或绝对值的相差值匹配规则");
|
||||
|
||||
b.Property<decimal?>("JudgeDifferenceValue")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)")
|
||||
.HasComment("裁判百分比或绝对值的相差值");
|
||||
|
||||
b.Property<int>("JudgeType")
|
||||
.HasColumnType("int")
|
||||
.HasComment("裁判类型");
|
||||
|
||||
b.Property<Guid>("ReadingQuestionId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasComment("问题Id");
|
||||
|
||||
b.Property<decimal>("VisitNum")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
SqlServerKeyBuilderExtensions.IsClustered(b.HasKey("Id"), false);
|
||||
|
||||
b.HasIndex("CreateTime");
|
||||
|
||||
SqlServerIndexBuilderExtensions.IsClustered(b.HasIndex("CreateTime"));
|
||||
|
||||
b.ToTable("ReadingQuestionVisitJudgeRule", t =>
|
||||
{
|
||||
t.HasComment("项目阅片访视裁判规则");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -16682,6 +16747,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
.HasColumnType("bit")
|
||||
.HasComment("阅片结果是否和原数据有差异");
|
||||
|
||||
b.Property<bool>("IsCalculatedJudge")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IsCanEditUrgentState")
|
||||
.HasColumnType("bit")
|
||||
.HasComment("是否和编辑加急状态");
|
||||
@@ -19027,6 +19095,25 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
b.Navigation("RelevanceReadingQuestionTrial");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingQuestionVisitJudgeRule", b =>
|
||||
{
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
||||
.WithMany()
|
||||
.HasForeignKey("CreateUserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.ReadingQuestionTrial", "ReadingQuestionTrial")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReadingQuestionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CreateUserRole");
|
||||
|
||||
b.Navigation("ReadingQuestionTrial");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingSystemCriterionDictionary", b =>
|
||||
{
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
||||
|
||||
Reference in New Issue
Block a user