Browse Source

无纸化

master
wxd 7 hours ago
parent
commit
1447847399
  1. 17049
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20260420033358_update_register_add_give_up_check_file_add_table_give_up_check_template.Designer.cs
  2. 73
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20260420033358_update_register_add_give_up_check_file_add_table_give_up_check_template.cs
  3. 76
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

17049
src/Shentun.Peis.EntityFrameworkCore/Migrations/20260420033358_update_register_add_give_up_check_file_add_table_give_up_check_template.Designer.cs
File diff suppressed because it is too large
View File

73
src/Shentun.Peis.EntityFrameworkCore/Migrations/20260420033358_update_register_add_give_up_check_file_add_table_give_up_check_template.cs

@ -0,0 +1,73 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class update_register_add_give_up_check_file_add_table_give_up_check_template : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "give_up_check_file",
table: "register_check",
type: "character varying(200)",
maxLength: 200,
nullable: true,
comment: "弃检模板文件路径");
migrationBuilder.AddColumn<DateTime>(
name: "sum_check_operating_time",
table: "patient_register",
type: "timestamp without time zone",
nullable: true,
comment: "总检操作时间");
migrationBuilder.AddColumn<Guid>(
name: "sum_check_operating_user",
table: "patient_register",
type: "uuid",
nullable: true,
comment: "总检操作者");
migrationBuilder.CreateTable(
name: "give_up_check_template",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", nullable: false),
display_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false, comment: "模板名称"),
informed_consent_template_file = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false, comment: "模板路径"),
is_active = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "'N'", comment: "是否启用 只能启用一个"),
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
creator_id = table.Column<Guid>(type: "uuid", nullable: false),
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_give_up_check_template", x => x.id);
},
comment: "弃检模板");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "give_up_check_template");
migrationBuilder.DropColumn(
name: "give_up_check_file",
table: "register_check");
migrationBuilder.DropColumn(
name: "sum_check_operating_time",
table: "patient_register");
migrationBuilder.DropColumn(
name: "sum_check_operating_user",
table: "patient_register");
}
}
}

76
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -4928,6 +4928,66 @@ namespace Shentun.Peis.Migrations
b.HasComment("适用性别设置,固定编码");
});
modelBuilder.Entity("Shentun.Peis.Models.GiveUpCheckTemplate", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("display_name")
.HasComment("模板名称");
b.Property<string>("InformedConsentTemplateFile")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("informed_consent_template_file")
.HasComment("模板路径");
b.Property<char>("IsActive")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active")
.HasDefaultValueSql("'N'")
.HasComment("是否启用 只能启用一个");
b.Property<DateTime?>("LastModificationTime")
.IsRequired()
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("Id");
b.ToTable("give_up_check_template");
b.HasComment("弃检模板");
});
modelBuilder.Entity("Shentun.Peis.Models.Grouping", b =>
{
b.Property<Guid>("Id")
@ -8291,6 +8351,16 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'U'")
.HasComment("性别");
b.Property<DateTime?>("SumCheckOperatingTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("sum_check_operating_time")
.HasComment("总检操作时间");
b.Property<Guid?>("SumCheckOperatingUser")
.HasColumnType("uuid")
.HasColumnName("sum_check_operating_user")
.HasComment("总检操作者");
b.Property<DateTime?>("SummaryDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("summary_date")
@ -9405,6 +9475,12 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid")
.HasColumnName("follow_up_creator_id");
b.Property<string>("GiveUpCheckFile")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("give_up_check_file")
.HasComment("弃检模板文件路径");
b.Property<string>("GiveUpCheckSignFile")
.HasMaxLength(200)
.HasColumnType("character varying(200)")

Loading…
Cancel
Save