@@ -367,6 +367,7 @@ public class IRaCISDBContext : DbContext
|
||||
|
||||
#region Reading
|
||||
|
||||
public virtual DbSet<ReadingUserConfig> ReadingUserConfig { get; set; }
|
||||
public virtual DbSet<Segmentation> Segmentation { get; set; }
|
||||
|
||||
public virtual DbSet<Segment> Segment { get; set; }
|
||||
|
||||
+22111
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class readingUserConfig : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ReadingUserConfig",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
UserRoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ImageToolType = table.Column<int>(type: "int", nullable: false, comment: "影像工具类型"),
|
||||
AutoCutNextTask = table.Column<bool>(type: "bit", nullable: false, comment: "自动切换下一个任务"),
|
||||
IsDoubleScreen = table.Column<bool>(type: "bit", nullable: false),
|
||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
|
||||
},
|
||||
comment: "项目阅片 - 用户配置");
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "ReadingUserConfig");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8410,6 +8410,45 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingUserConfig", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("AutoCutNextTask")
|
||||
.HasColumnType("bit")
|
||||
.HasComment("自动切换下一个任务");
|
||||
|
||||
b.Property<DateTime>("CreateTime")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid>("CreateUserId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("ImageToolType")
|
||||
.HasColumnType("int")
|
||||
.HasComment("影像工具类型");
|
||||
|
||||
b.Property<bool>("IsDoubleScreen")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid>("UserRoleId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
SqlServerKeyBuilderExtensions.IsClustered(b.HasKey("Id"), false);
|
||||
|
||||
b.HasIndex("CreateTime");
|
||||
|
||||
SqlServerIndexBuilderExtensions.IsClustered(b.HasIndex("CreateTime"));
|
||||
|
||||
b.ToTable("ReadingUserConfig", t =>
|
||||
{
|
||||
t.HasComment("项目阅片 - 用户配置");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -18959,6 +18998,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
b.Navigation("TrialReadingCriterion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingUserConfig", b =>
|
||||
{
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
||||
.WithMany()
|
||||
.HasForeignKey("CreateUserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CreateUserRole");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ResearchPublication", b =>
|
||||
{
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
||||
|
||||
Reference in New Issue
Block a user