DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
04e1dc83c8
  1. 4
      src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
  2. 13492
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418074903_init20240418001.Designer.cs
  3. 38
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418074903_init20240418001.cs
  4. 13492
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418082314_init20240418002.Designer.cs
  5. 56
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418082314_init20240418002.cs
  6. 13496
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418102202_init20240418003.Designer.cs
  7. 26
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418102202_init20240418003.cs
  8. 13496
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418104010_init20240418004.Designer.cs
  9. 35
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418104010_init20240418004.cs
  10. 13494
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240419103409_init20240419001.Designer.cs
  11. 62
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240419103409_init20240419001.cs
  12. 13495
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240420035043_init20240420001.Designer.cs
  13. 35
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240420035043_init20240420001.cs
  14. 13785
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240421094110_init20240421001.Designer.cs
  15. 39
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240421094110_init20240421001.cs
  16. 13788
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240423075634_init20240423.Designer.cs
  17. 139
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240423075634_init20240423.cs
  18. 13926
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424094332_init20240424001.Designer.cs
  19. 114
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424094332_init20240424001.cs
  20. 13836
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424103142_init20240424002.Designer.cs
  21. 100
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424103142_init20240424002.cs
  22. 14089
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426142107_init20240426001.Designer.cs
  23. 153
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426142107_init20240426001.cs
  24. 14089
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426151955_init20240426002.Designer.cs
  25. 36
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426151955_init20240426002.cs
  26. 14089
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426153157_init20240426003.Designer.cs
  27. 35
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426153157_init20240426003.cs
  28. 14084
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240429121856_init20240429001.Designer.cs
  29. 22
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240429121856_init20240429001.cs
  30. 14136
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112155_init20240502001.Designer.cs
  31. 114
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112155_init20240502001.cs
  32. 14151
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112642_init20240502002.Designer.cs
  33. 35
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112642_init20240502002.cs
  34. 14165
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502143341_init20240502003.Designer.cs
  35. 242
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502143341_init20240502003.cs
  36. 14170
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503112231_init20240503001.Designer.cs
  37. 26
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503112231_init20240503001.cs
  38. 14242
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.Designer.cs
  39. 45
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.cs
  40. 14246
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.Designer.cs
  41. BIN
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.cs
  42. 27
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240508032316_init20240508001.cs
  43. 10
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240508160451_init20240509001.Designer.cs
  44. 25
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240508160451_init20240509001.cs
  45. 6
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

4
src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs

@ -1123,6 +1123,10 @@ namespace Shentun.Peis.DataMigrations
await _asbitemRepository.InsertAsync(data);
#region 指引信息
#endregion
var fieldComparison = new FieldComparison
{
TableName = "asbitem",

13492
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418074903_init20240418001.Designer.cs
File diff suppressed because it is too large
View File

38
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418074903_init20240418001.cs

@ -1,38 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240418001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "FieldComparisons",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", nullable: false),
table_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "表名"),
field_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "字段名"),
old_key_value = table.Column<string>(type: "text", nullable: false, comment: "老系统主键值"),
new_key_value = table.Column<string>(type: "text", nullable: false, comment: "新系统主键值"),
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_FieldComparisons", x => x.id);
},
comment: "字段对照");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "FieldComparisons");
}
}
}

13492
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418082314_init20240418002.Designer.cs
File diff suppressed because it is too large
View File

56
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418082314_init20240418002.cs

@ -1,56 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240418002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "FieldComparisons");
migrationBuilder.CreateTable(
name: "field_comparison",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", nullable: false),
table_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "表名"),
field_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "字段名"),
old_key_value = table.Column<string>(type: "text", nullable: false, comment: "老系统主键值"),
new_key_value = table.Column<string>(type: "text", nullable: false, comment: "新系统主键值"),
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_field_comparison", x => x.id);
},
comment: "字段对照");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "field_comparison");
migrationBuilder.CreateTable(
name: "FieldComparisons",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", nullable: false),
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
field_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "字段名"),
new_key_value = table.Column<string>(type: "text", nullable: false, comment: "新系统主键值"),
old_key_value = table.Column<string>(type: "text", nullable: false, comment: "老系统主键值"),
table_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "表名")
},
constraints: table =>
{
table.PrimaryKey("PK_FieldComparisons", x => x.id);
},
comment: "字段对照");
}
}
}

13496
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418102202_init20240418003.Designer.cs
File diff suppressed because it is too large
View File

26
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418102202_init20240418003.cs

@ -1,26 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240418003 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "device_type_id",
table: "item",
type: "uuid",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "device_type_id",
table: "item");
}
}
}

13496
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418104010_init20240418004.Designer.cs
File diff suppressed because it is too large
View File

35
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418104010_init20240418004.cs

@ -1,35 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240418004 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "ix_item",
table: "item");
migrationBuilder.CreateIndex(
name: "ix_item",
table: "item",
columns: new[] { "display_name", "item_type_id" },
unique: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "ix_item",
table: "item");
migrationBuilder.CreateIndex(
name: "ix_item",
table: "item",
column: "display_name",
unique: true);
}
}
}

13494
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240419103409_init20240419001.Designer.cs
File diff suppressed because it is too large
View File

62
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240419103409_init20240419001.cs

@ -1,62 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240419001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "audit_doctor",
table: "patient_register");
migrationBuilder.DropColumn(
name: "summary_doctor",
table: "patient_register");
migrationBuilder.AddColumn<Guid>(
name: "audit_doctor_id",
table: "patient_register",
type: "uuid",
nullable: true,
comment: "审核医生");
migrationBuilder.AddColumn<Guid>(
name: "summary_doctor_id",
table: "patient_register",
type: "uuid",
nullable: true,
comment: "总检医生");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "audit_doctor_id",
table: "patient_register");
migrationBuilder.DropColumn(
name: "summary_doctor_id",
table: "patient_register");
migrationBuilder.AddColumn<string>(
name: "audit_doctor",
table: "patient_register",
type: "character varying(50)",
maxLength: 50,
nullable: true,
comment: "审核医生");
migrationBuilder.AddColumn<string>(
name: "summary_doctor",
table: "patient_register",
type: "character varying(50)",
maxLength: 50,
nullable: true,
comment: "总检医生");
}
}
}

13495
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240420035043_init20240420001.Designer.cs
File diff suppressed because it is too large
View File

35
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240420035043_init20240420001.cs

@ -1,35 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240420001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "SampleGroupId",
table: "lis_request",
newName: "sample_group_id");
migrationBuilder.RenameIndex(
name: "IX_lis_request_SampleGroupId",
table: "lis_request",
newName: "IX_lis_request_sample_group_id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "sample_group_id",
table: "lis_request",
newName: "SampleGroupId");
migrationBuilder.RenameIndex(
name: "IX_lis_request_sample_group_id",
table: "lis_request",
newName: "IX_lis_request_SampleGroupId");
}
}
}

13785
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240421094110_init20240421001.Designer.cs
File diff suppressed because it is too large
View File

39
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240421094110_init20240421001.cs

@ -1,39 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240421001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "display_name",
table: "customer_org_group",
type: "character varying(50)",
maxLength: 50,
nullable: false,
comment: "分组名称",
oldClrType: typeof(string),
oldType: "character varying(20)",
oldMaxLength: 20,
oldComment: "分组名称");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "display_name",
table: "customer_org_group",
type: "character varying(20)",
maxLength: 20,
nullable: false,
comment: "分组名称",
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldComment: "分组名称");
}
}
}

13788
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240423075634_init20240423.Designer.cs
File diff suppressed because it is too large
View File

139
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240423075634_init20240423.cs

@ -1,139 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240423 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "summary_content",
table: "sum_summary_content",
type: "character varying(3000)",
maxLength: 3000,
nullable: false,
comment: "建议内容",
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldComment: "建议内容");
migrationBuilder.AlterColumn<string>(
name: "suggestion_content",
table: "sum_suggestion_content",
type: "character varying(10000)",
maxLength: 10000,
nullable: false,
comment: "建议内容",
oldClrType: typeof(string),
oldType: "character varying(100)",
oldMaxLength: 100,
oldComment: "建议内容");
migrationBuilder.AlterColumn<string>(
name: "report_prompt",
table: "result_status",
type: "character varying(8)",
maxLength: 8,
nullable: true,
comment: "报告单提示",
oldClrType: typeof(string),
oldType: "character varying(8)",
oldMaxLength: 8,
oldComment: "报告单提示");
migrationBuilder.AlterColumn<string>(
name: "data_input_prompt",
table: "result_status",
type: "character varying(8)",
maxLength: 8,
nullable: true,
comment: "数据录入提示",
oldClrType: typeof(string),
oldType: "character varying(8)",
oldMaxLength: 8,
oldComment: "数据录入提示");
migrationBuilder.AlterColumn<string>(
name: "summary",
table: "register_check_summary",
type: "character varying(2000)",
maxLength: 2000,
nullable: false,
comment: "综述",
oldClrType: typeof(string),
oldType: "character varying(500)",
oldMaxLength: 500,
oldComment: "综述");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "summary_content",
table: "sum_summary_content",
type: "character varying(100)",
maxLength: 100,
nullable: false,
comment: "建议内容",
oldClrType: typeof(string),
oldType: "character varying(3000)",
oldMaxLength: 3000,
oldComment: "建议内容");
migrationBuilder.AlterColumn<string>(
name: "suggestion_content",
table: "sum_suggestion_content",
type: "character varying(100)",
maxLength: 100,
nullable: false,
comment: "建议内容",
oldClrType: typeof(string),
oldType: "character varying(10000)",
oldMaxLength: 10000,
oldComment: "建议内容");
migrationBuilder.AlterColumn<string>(
name: "report_prompt",
table: "result_status",
type: "character varying(8)",
maxLength: 8,
nullable: false,
defaultValue: "",
comment: "报告单提示",
oldClrType: typeof(string),
oldType: "character varying(8)",
oldMaxLength: 8,
oldNullable: true,
oldComment: "报告单提示");
migrationBuilder.AlterColumn<string>(
name: "data_input_prompt",
table: "result_status",
type: "character varying(8)",
maxLength: 8,
nullable: false,
defaultValue: "",
comment: "数据录入提示",
oldClrType: typeof(string),
oldType: "character varying(8)",
oldMaxLength: 8,
oldNullable: true,
oldComment: "数据录入提示");
migrationBuilder.AlterColumn<string>(
name: "summary",
table: "register_check_summary",
type: "character varying(500)",
maxLength: 500,
nullable: false,
comment: "综述",
oldClrType: typeof(string),
oldType: "character varying(2000)",
oldMaxLength: 2000,
oldComment: "综述");
}
}
}

13926
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424094332_init20240424001.Designer.cs
File diff suppressed because it is too large
View File

114
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424094332_init20240424001.cs

@ -1,114 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240424001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "dll_name",
table: "column_reference_plug_ins");
migrationBuilder.AddColumn<string>(
name: "assembly_name",
table: "column_reference_plug_ins",
type: "character varying(100)",
maxLength: 100,
nullable: false,
defaultValue: "",
comment: "Assembly名称");
migrationBuilder.AddColumn<string>(
name: "class_name",
table: "column_reference_plug_ins",
type: "character varying(100)",
maxLength: 100,
nullable: false,
defaultValue: "",
comment: "Class名称");
migrationBuilder.AddColumn<int>(
name: "display_order",
table: "column_reference_plug_ins",
type: "integer",
nullable: false,
defaultValue: 0,
comment: "显示顺序");
migrationBuilder.AddColumn<int>(
name: "display_order",
table: "column_reference",
type: "integer",
nullable: false,
defaultValue: 0,
comment: "显示顺序");
migrationBuilder.CreateTable(
name: "L_JYTMXX_TJ",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"),
DOCTADVISENO = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
PATIENTID = table.Column<string>(type: "character varying(18)", maxLength: 18, nullable: false),
PATIENTNAME = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
BRITHDAY = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
SEX = table.Column<char>(type: "character(1)", nullable: false),
EXAMINAIM = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
EXAMINAIMCODE = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
SECTION = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
REQUESTER = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
LXDH = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: false),
REQUESTTIME = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
FEE = table.Column<decimal>(type: "numeric(7,2)", nullable: false),
FEESTATUS = table.Column<short>(type: "smallint", nullable: false),
STAYHOSPITALMODE = table.Column<short>(type: "smallint", nullable: false),
BRXZ = table.Column<string>(type: "character varying(10)", maxLength: 10, nullable: false),
SAMPLETYPE = table.Column<string>(type: "character varying(4)", maxLength: 4, nullable: false),
EXECUTETIME = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
EXECUTOR = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
SAMPLE_JSZT = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
SFZH = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_L_JYTMXX_TJ", x => x.id);
},
comment: "LIS对接表");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "L_JYTMXX_TJ");
migrationBuilder.DropColumn(
name: "assembly_name",
table: "column_reference_plug_ins");
migrationBuilder.DropColumn(
name: "class_name",
table: "column_reference_plug_ins");
migrationBuilder.DropColumn(
name: "display_order",
table: "column_reference_plug_ins");
migrationBuilder.DropColumn(
name: "display_order",
table: "column_reference");
migrationBuilder.AddColumn<string>(
name: "dll_name",
table: "column_reference_plug_ins",
type: "character varying(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
comment: "Dll名称");
}
}
}

13836
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424103142_init20240424002.Designer.cs
File diff suppressed because it is too large
View File

100
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424103142_init20240424002.cs

@ -1,100 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240424002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "fk_columnreference_columnreferenceplugins",
table: "column_reference");
migrationBuilder.DropTable(
name: "column_reference_plug_ins");
migrationBuilder.DropIndex(
name: "IX_column_reference_column_reference_plug_ins_id",
table: "column_reference");
migrationBuilder.DropColumn(
name: "column_reference_plug_ins_id",
table: "column_reference");
migrationBuilder.AlterColumn<DateOnly>(
name: "BRITHDAY",
table: "L_JYTMXX_TJ",
type: "date",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AddColumn<string>(
name: "parm_value",
table: "column_reference",
type: "character varying(1000)",
maxLength: 1000,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "parm_value",
table: "column_reference");
migrationBuilder.AlterColumn<DateTime>(
name: "BRITHDAY",
table: "L_JYTMXX_TJ",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateOnly),
oldType: "date");
migrationBuilder.AddColumn<Guid>(
name: "column_reference_plug_ins_id",
table: "column_reference",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
comment: "插件ID");
migrationBuilder.CreateTable(
name: "column_reference_plug_ins",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"),
assembly_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false, comment: "Assembly名称"),
class_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false, comment: "Class名称"),
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),
display_name = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false, comment: "名称"),
display_order = table.Column<int>(type: "integer", nullable: false, comment: "显示顺序"),
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false),
parm_value = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true, comment: "配置参数")
},
constraints: table =>
{
table.PrimaryKey("PK_column_reference_plug_ins", x => x.id);
},
comment: "字段对照插件表");
migrationBuilder.CreateIndex(
name: "IX_column_reference_column_reference_plug_ins_id",
table: "column_reference",
column: "column_reference_plug_ins_id");
migrationBuilder.AddForeignKey(
name: "fk_columnreference_columnreferenceplugins",
table: "column_reference",
column: "column_reference_plug_ins_id",
principalTable: "column_reference_plug_ins",
principalColumn: "id");
}
}
}

14089
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426142107_init20240426001.Designer.cs
File diff suppressed because it is too large
View File

153
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426142107_init20240426001.cs

@ -1,153 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240426001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "charge_request_id",
table: "register_check_asbitem",
type: "uuid",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "his_patient_id",
table: "patient_register",
type: "character varying(20)",
maxLength: 20,
nullable: true);
migrationBuilder.CreateTable(
name: "charge_request",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", nullable: false, comment: "收据申请单号"),
patient_register_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "登记流水号"),
charge_request_no = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: true),
his_charge_no = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: true),
charge_request_flag = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "0"),
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_charge_request", x => x.id);
table.ForeignKey(
name: "FK_charge_request_patient_register_patient_register_id",
column: x => x.patient_register_id,
principalTable: "patient_register",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "收费申请单主档");
migrationBuilder.CreateTable(
name: "third_interface",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"),
display_name = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false, comment: "名称"),
third_interface_type = table.Column<string>(type: "character varying(2)", maxLength: 2, nullable: false, comment: "接口类型"),
parm_value = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true),
is_active = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, comment: "是否启用"),
display_order = table.Column<int>(type: "integer", nullable: false, 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_third_interface", x => x.id);
},
comment: "第三方接口表");
migrationBuilder.CreateTable(
name: "charge_request_asbitem",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", nullable: false),
charge_request_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "收费申请单号"),
asbitem_id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "组合项目"),
charge_price = table.Column<decimal>(type: "numeric(10,2)", precision: 10, scale: 2, nullable: false, comment: "价格"),
amount = table.Column<short>(type: "smallint", nullable: false),
register_check_asbitem_id = table.Column<Guid>(type: "uuid", nullable: false),
is_charge = table.Column<char>(type: "character(1)", nullable: false),
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_charge_request_asbitem", x => x.id);
table.ForeignKey(
name: "fk_charge_request_asbitem_asbitem",
column: x => x.asbitem_id,
principalTable: "asbitem",
principalColumn: "id");
table.ForeignKey(
name: "fk_charge_request_asbitem_charge",
column: x => x.charge_request_id,
principalTable: "charge_request",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
},
comment: "收费申请包含组合项目");
migrationBuilder.CreateIndex(
name: "IX_charge_request_patient_register_id",
table: "charge_request",
column: "patient_register_id");
migrationBuilder.CreateIndex(
name: "IX_charge_request_asbitem_asbitem_id",
table: "charge_request_asbitem",
column: "asbitem_id");
migrationBuilder.CreateIndex(
name: "IX_charge_request_asbitem_charge_request_id",
table: "charge_request_asbitem",
column: "charge_request_id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "charge_request_asbitem");
migrationBuilder.DropTable(
name: "third_interface");
migrationBuilder.DropTable(
name: "charge_request");
migrationBuilder.DropColumn(
name: "charge_request_id",
table: "register_check_asbitem");
migrationBuilder.DropColumn(
name: "his_patient_id",
table: "patient_register");
migrationBuilder.AlterColumn<DateOnly>(
name: "BRITHDAY",
table: "L_JYTMXX_TJ",
type: "date",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
}
}
}

14089
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426151955_init20240426002.Designer.cs
File diff suppressed because it is too large
View File

36
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426151955_init20240426002.cs

@ -1,36 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240426002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "isDefault",
table: "report_format",
newName: "is_default");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "is_default",
table: "report_format",
newName: "isDefault");
migrationBuilder.AlterColumn<DateTime>(
name: "BRITHDAY",
table: "L_JYTMXX_TJ",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateOnly),
oldType: "date");
}
}
}

14089
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426153157_init20240426003.Designer.cs
File diff suppressed because it is too large
View File

35
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426153157_init20240426003.cs

@ -1,35 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240426003 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "isSystem",
table: "report_format_template",
newName: "is_system");
migrationBuilder.RenameColumn(
name: "isDefault",
table: "report_format_template",
newName: "is_default");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "is_system",
table: "report_format_template",
newName: "isSystem");
migrationBuilder.RenameColumn(
name: "is_default",
table: "report_format_template",
newName: "isDefault");
}
}
}

14084
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240429121856_init20240429001.Designer.cs
File diff suppressed because it is too large
View File

22
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240429121856_init20240429001.cs

@ -1,22 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240429001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

14136
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112155_init20240502001.Designer.cs
File diff suppressed because it is too large
View File

114
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112155_init20240502001.cs

@ -1,114 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240502001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "fk_asbitem_invoice_item_type",
table: "asbitem");
migrationBuilder.DropPrimaryKey(
name: "PK_third_interface",
table: "third_interface");
migrationBuilder.DropIndex(
name: "IX_asbitem_invoice_item_type_id",
table: "asbitem");
migrationBuilder.DropColumn(
name: "invoice_item_type_id",
table: "asbitem");
migrationBuilder.AddColumn<Guid>(
name: "collect_item_type_id",
table: "asbitem",
type: "uuid",
fixedLength: true,
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
comment: "汇总项目类别");
migrationBuilder.AddPrimaryKey(
name: "PK_third_interface",
table: "third_interface",
column: "id");
migrationBuilder.CreateTable(
name: "collect_item_type",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
display_name = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true),
simple_code = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true),
display_order = table.Column<int>(type: "integer", nullable: false),
invoice_item_type_id = table.Column<Guid>(type: "uuid", nullable: false),
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uuid", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_collect_item_type", x => x.Id);
table.ForeignKey(
name: "FK_collect_item_type_invoice_item_type_invoice_item_type_id",
column: x => x.invoice_item_type_id,
principalTable: "invoice_item_type",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_collect_item_type_invoice_item_type_id",
table: "collect_item_type",
column: "invoice_item_type_id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "collect_item_type");
migrationBuilder.DropPrimaryKey(
name: "PK_third_interface",
table: "third_interface");
migrationBuilder.DropColumn(
name: "collect_item_type_id",
table: "asbitem");
migrationBuilder.AddColumn<Guid>(
name: "invoice_item_type_id",
table: "asbitem",
type: "uuid",
fixedLength: true,
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
comment: "发票类别");
migrationBuilder.AddPrimaryKey(
name: "PK_third_interface",
table: "third_interface",
column: "medical_center_id");
migrationBuilder.CreateIndex(
name: "IX_asbitem_invoice_item_type_id",
table: "asbitem",
column: "invoice_item_type_id");
migrationBuilder.AddForeignKey(
name: "fk_asbitem_invoice_item_type",
table: "asbitem",
column: "invoice_item_type_id",
principalTable: "invoice_item_type",
principalColumn: "id");
}
}
}

14151
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112642_init20240502002.Designer.cs
File diff suppressed because it is too large
View File

35
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112642_init20240502002.cs

@ -1,35 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240502002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
name: "IX_asbitem_collect_item_type_id",
table: "asbitem",
column: "collect_item_type_id");
migrationBuilder.AddForeignKey(
name: "fk_asbitem_collect_item_type",
table: "asbitem",
column: "collect_item_type_id",
principalTable: "collect_item_type",
principalColumn: "Id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "fk_asbitem_collect_item_type",
table: "asbitem");
migrationBuilder.DropIndex(
name: "IX_asbitem_collect_item_type_id",
table: "asbitem");
}
}
}

14165
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502143341_init20240502003.Designer.cs
File diff suppressed because it is too large
View File

242
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502143341_init20240502003.cs

@ -1,242 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240502003 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Id",
table: "collect_item_type",
newName: "id");
migrationBuilder.RenameColumn(
name: "LastModifierId",
table: "collect_item_type",
newName: "last_modifier_id");
migrationBuilder.RenameColumn(
name: "LastModificationTime",
table: "collect_item_type",
newName: "last_modification_time");
migrationBuilder.RenameColumn(
name: "CreatorId",
table: "collect_item_type",
newName: "creator_id");
migrationBuilder.RenameColumn(
name: "CreationTime",
table: "collect_item_type",
newName: "creation_time");
migrationBuilder.RenameColumn(
name: "ConcurrencyStamp",
table: "collect_item_type",
newName: "concurrency_stamp");
migrationBuilder.AlterTable(
name: "collect_item_type",
comment: "汇总项目类别");
migrationBuilder.AlterColumn<string>(
name: "simple_code",
table: "collect_item_type",
type: "character varying(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
comment: "简码",
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<Guid>(
name: "invoice_item_type_id",
table: "collect_item_type",
type: "uuid",
nullable: false,
comment: "发票项目类别ID",
oldClrType: typeof(Guid),
oldType: "uuid");
migrationBuilder.AlterColumn<int>(
name: "display_order",
table: "collect_item_type",
type: "integer",
nullable: false,
comment: "显示顺序",
oldClrType: typeof(int),
oldType: "integer");
migrationBuilder.AlterColumn<string>(
name: "display_name",
table: "collect_item_type",
type: "character varying(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
comment: "名称",
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<Guid>(
name: "id",
table: "collect_item_type",
type: "uuid",
fixedLength: true,
nullable: false,
comment: "编号",
oldClrType: typeof(Guid),
oldType: "uuid");
migrationBuilder.AlterColumn<Guid>(
name: "last_modifier_id",
table: "collect_item_type",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "uuid",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "last_modification_time",
table: "collect_item_type",
type: "timestamp without time zone",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<Guid>(
name: "creator_id",
table: "collect_item_type",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "uuid",
oldNullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "id",
table: "collect_item_type",
newName: "Id");
migrationBuilder.RenameColumn(
name: "last_modifier_id",
table: "collect_item_type",
newName: "LastModifierId");
migrationBuilder.RenameColumn(
name: "last_modification_time",
table: "collect_item_type",
newName: "LastModificationTime");
migrationBuilder.RenameColumn(
name: "creator_id",
table: "collect_item_type",
newName: "CreatorId");
migrationBuilder.RenameColumn(
name: "creation_time",
table: "collect_item_type",
newName: "CreationTime");
migrationBuilder.RenameColumn(
name: "concurrency_stamp",
table: "collect_item_type",
newName: "ConcurrencyStamp");
migrationBuilder.AlterTable(
name: "collect_item_type",
oldComment: "汇总项目类别");
migrationBuilder.AlterColumn<string>(
name: "simple_code",
table: "collect_item_type",
type: "character varying(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldComment: "简码");
migrationBuilder.AlterColumn<Guid>(
name: "invoice_item_type_id",
table: "collect_item_type",
type: "uuid",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uuid",
oldComment: "发票项目类别ID");
migrationBuilder.AlterColumn<int>(
name: "display_order",
table: "collect_item_type",
type: "integer",
nullable: false,
oldClrType: typeof(int),
oldType: "integer",
oldComment: "显示顺序");
migrationBuilder.AlterColumn<string>(
name: "display_name",
table: "collect_item_type",
type: "character varying(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50,
oldComment: "名称");
migrationBuilder.AlterColumn<Guid>(
name: "Id",
table: "collect_item_type",
type: "uuid",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uuid",
oldFixedLength: true,
oldComment: "编号");
migrationBuilder.AlterColumn<Guid>(
name: "LastModifierId",
table: "collect_item_type",
type: "uuid",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uuid");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "collect_item_type",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<Guid>(
name: "CreatorId",
table: "collect_item_type",
type: "uuid",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uuid");
}
}
}

14170
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503112231_init20240503001.Designer.cs
File diff suppressed because it is too large
View File

26
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503112231_init20240503001.cs

@ -1,26 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240503001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "country_org_code",
table: "customer_org",
type: "character varying(20)",
maxLength: 20,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "country_org_code",
table: "customer_org");
}
}
}

14242
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.Designer.cs
File diff suppressed because it is too large
View File

45
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.cs

@ -1,45 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240503002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "patient_register_exter",
columns: table => new
{
patient_register_id = table.Column<Guid>(type: "uuid", nullable: false),
qztl_type = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_cw = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_cy = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_gt = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_main = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_wh = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_fj = table.Column<char>(type: "character(1)", nullable: false),
is_qztl_import = table.Column<char>(type: "character(1)", nullable: false),
upload_qztl_flag = table.Column<char>(type: "character(1)", nullable: false),
planuserid = table.Column<string>(type: "text", nullable: true),
remark2 = table.Column<string>(type: "text", nullable: true),
remark3 = table.Column<string>(type: "text", nullable: true),
remark4 = table.Column<string>(type: "text", nullable: true),
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_patient_register_exter", x => x.patient_register_id);
},
comment: "人员登记信息扩展");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "patient_register_exter");
}
}
}

14246
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.Designer.cs
File diff suppressed because it is too large
View File

BIN
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.cs

27
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240508032316_init20240508001.cs

@ -1,27 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240508001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<char>(
name: "is_check_request",
table: "item_type",
type: "character(1)",
nullable: false,
defaultValueSql: "'N'",
comment: "支持检查申请");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "is_check_request",
table: "item_type");
}
}
}

10
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240508032316_init20240508001.Designer.cs → src/Shentun.Peis.EntityFrameworkCore/Migrations/20240508160451_init20240509001.Designer.cs

@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore;
namespace Shentun.Peis.Migrations
{
[DbContext(typeof(PeisDbContext))]
[Migration("20240508032316_init20240508001")]
partial class init20240508001
[Migration("20240508160451_init20240509001")]
partial class init20240509001
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
@ -672,9 +672,9 @@ namespace Shentun.Peis.Migrations
modelBuilder.Entity("Shentun.Peis.Models.AsbitemGuide", b =>
{
b.Property<Guid>("OrganizationUnitId")
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("organization_unit_id")
.HasColumnName("medical_center_id")
.IsFixedLength()
.HasComment("单位科室ID");
@ -723,7 +723,7 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("OrganizationUnitId", "AsbitemId", "ForSexId")
b.HasKey("MedicalCenterId", "AsbitemId", "ForSexId")
.HasName("pk_department_asbitem_guide");
b.ToTable("asbitem_guide");

25
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240508160451_init20240509001.cs

@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240509001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "organization_unit_id",
table: "asbitem_guide",
newName: "medical_center_id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "medical_center_id",
table: "asbitem_guide",
newName: "organization_unit_id");
}
}
}

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

@ -670,9 +670,9 @@ namespace Shentun.Peis.Migrations
modelBuilder.Entity("Shentun.Peis.Models.AsbitemGuide", b =>
{
b.Property<Guid>("OrganizationUnitId")
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("organization_unit_id")
.HasColumnName("medical_center_id")
.IsFixedLength()
.HasComment("单位科室ID");
@ -721,7 +721,7 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("OrganizationUnitId", "AsbitemId", "ForSexId")
b.HasKey("MedicalCenterId", "AsbitemId", "ForSexId")
.HasName("pk_department_asbitem_guide");
b.ToTable("asbitem_guide");

Loading…
Cancel
Save