From 7b0a47026e10e5b7be41f6e9466b5badc4bd628e Mon Sep 17 00:00:00 2001
From: wxd <270608793@qq.com>
Date: Sat, 6 May 2023 11:56:52 +0800
Subject: [PATCH] =?UTF-8?q?IsActive=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/Shentun.Peis.Domain/Models/Asbitem.cs | 4 +-
src/Shentun.Peis.Domain/Models/Department.cs | 4 +-
src/Shentun.Peis.Domain/Models/Item.cs | 4 +-
.../Models/MedicalPackage.cs | 4 +-
src/Shentun.Peis.Domain/Models/Room.cs | 4 +-
src/Shentun.Peis.Domain/Models/User.cs | 4 +-
.../EntityFrameworkCore/PeisDbContext.cs | 2 +-
.../Migrations/20230506035600_i2.Designer.cs | 10543 ++++++++++++++++
.../Migrations/20230506035600_i2.cs | 75 +
.../Migrations/PeisDbContextModelSnapshot.cs | 36 +-
10 files changed, 10649 insertions(+), 31 deletions(-)
create mode 100644 src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.Designer.cs
create mode 100644 src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.cs
diff --git a/src/Shentun.Peis.Domain/Models/Asbitem.cs b/src/Shentun.Peis.Domain/Models/Asbitem.cs
index fac225f..24babfa 100644
--- a/src/Shentun.Peis.Domain/Models/Asbitem.cs
+++ b/src/Shentun.Peis.Domain/Models/Asbitem.cs
@@ -127,9 +127,9 @@ namespace Shentun.Peis.Models
///
/// 是启用
///
- [Column("is_valid")]
+ [Column("is_active")]
[MaxLength(1)]
- public char IsValid { get; set; }
+ public char IsActive { get; set; }
[Column("simple_code")]
[StringLength(30)]
public string SimpleCode { get; set; } = null!;
diff --git a/src/Shentun.Peis.Domain/Models/Department.cs b/src/Shentun.Peis.Domain/Models/Department.cs
index 1100e80..de36f38 100644
--- a/src/Shentun.Peis.Domain/Models/Department.cs
+++ b/src/Shentun.Peis.Domain/Models/Department.cs
@@ -40,9 +40,9 @@ namespace Shentun.Peis.Models
[Column("code_prefix")]
[StringLength(2)]
public string? CodePrefix { get; set; }
- [Column("is_valid")]
+ [Column("is_active")]
[MaxLength(1)]
- public char IsValid { get; set; }
+ public char IsActive { get; set; }
[Column("simple_code")]
[StringLength(20)]
public string SimpleCode { get; set; } = null!;
diff --git a/src/Shentun.Peis.Domain/Models/Item.cs b/src/Shentun.Peis.Domain/Models/Item.cs
index e584d4c..c37a764 100644
--- a/src/Shentun.Peis.Domain/Models/Item.cs
+++ b/src/Shentun.Peis.Domain/Models/Item.cs
@@ -78,9 +78,9 @@ namespace Shentun.Peis.Models
[Column("input_check")]
[StringLength(100)]
public string? InputCheck { get; set; }
- [Column("is_valid")]
+ [Column("is_active")]
[MaxLength(1)]
- public char IsValid { get; set; }
+ public char IsActive { get; set; }
[Column("simple_code")]
[StringLength(30)]
public string SimpleCode { get; set; } = null!;
diff --git a/src/Shentun.Peis.Domain/Models/MedicalPackage.cs b/src/Shentun.Peis.Domain/Models/MedicalPackage.cs
index 2cdabc9..82c30d9 100644
--- a/src/Shentun.Peis.Domain/Models/MedicalPackage.cs
+++ b/src/Shentun.Peis.Domain/Models/MedicalPackage.cs
@@ -42,9 +42,9 @@ namespace Shentun.Peis.Models
///
/// 启用标志
///
- [Column("is_valid")]
+ [Column("is_active")]
[MaxLength(1)]
- public char IsValid { get; set; }
+ public char IsActive { get; set; }
///
/// 备注
///
diff --git a/src/Shentun.Peis.Domain/Models/Room.cs b/src/Shentun.Peis.Domain/Models/Room.cs
index 11196a2..f77f3f0 100644
--- a/src/Shentun.Peis.Domain/Models/Room.cs
+++ b/src/Shentun.Peis.Domain/Models/Room.cs
@@ -35,9 +35,9 @@ namespace Shentun.Peis.Models
[Column("room_type_flag")]
[MaxLength(1)]
public char RoomTypeFlag { get; set; }
- [Column("is_valid")]
+ [Column("is_active")]
[MaxLength(1)]
- public char IsValid { get; set; }
+ public char IsActive { get; set; }
[Column("simple_code")]
[StringLength(20)]
public string SimpleCode { get; set; } = null!;
diff --git a/src/Shentun.Peis.Domain/Models/User.cs b/src/Shentun.Peis.Domain/Models/User.cs
index b0b90d4..b0aa310 100644
--- a/src/Shentun.Peis.Domain/Models/User.cs
+++ b/src/Shentun.Peis.Domain/Models/User.cs
@@ -56,9 +56,9 @@ namespace Shentun.Peis.Models
[Column("simple_code")]
[StringLength(20)]
public string SimpleCode { get; set; } = null!;
- [Column("is_valid")]
+ [Column("is_active")]
[MaxLength(1)]
- public char IsValid { get; set; }
+ public char IsActive { get; set; }
[Column("lock_screen_time_interval")]
public int LockScreenTimeInterval { get; set; }
[Column("photo")]
diff --git a/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs b/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
index 1a228aa..4f44731 100644
--- a/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
+++ b/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
@@ -1898,7 +1898,7 @@ public class PeisDbContext :
.HasDefaultValueSql("'A'::bpchar")
.HasComment("适用性别");
- entity.Property(e => e.IsValid).HasComment("启用标志");
+ entity.Property(e => e.IsActive).HasComment("启用标志");
//entity.Property(e => e.LastModificationTime).HasComment("最后修改日期");
diff --git a/src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.Designer.cs b/src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.Designer.cs
new file mode 100644
index 0000000..916d5c1
--- /dev/null
+++ b/src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.Designer.cs
@@ -0,0 +1,10543 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
+using Shentun.Peis.EntityFrameworkCore;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Shentun.Peis.Migrations
+{
+ [DbContext(typeof(PeisDbContext))]
+ [Migration("20230506035600_i2")]
+ partial class i2
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
+ .HasAnnotation("ProductVersion", "6.0.5")
+ .HasAnnotation("Relational:MaxIdentifierLength", 63);
+
+ NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
+
+ modelBuilder.Entity("AsbitemRoom", b =>
+ {
+ b.Property("AsbitemId")
+ .HasColumnType("uuid");
+
+ b.Property("RoomId")
+ .HasColumnType("uuid");
+
+ b.HasKey("AsbitemId", "RoomId");
+
+ b.ToTable("AsbitemRoom");
+ });
+
+ modelBuilder.Entity("ChildDiagnosis", b =>
+ {
+ b.Property("ParentDiagnosisId")
+ .HasMaxLength(8)
+ .HasColumnType("uuid")
+ .HasColumnName("parent_diagnosis_id")
+ .IsFixedLength();
+
+ b.Property("DiagnosisId")
+ .HasMaxLength(8)
+ .HasColumnType("uuid")
+ .HasColumnName("diagnosis_id")
+ .IsFixedLength();
+
+ b.HasKey("ParentDiagnosisId", "DiagnosisId")
+ .HasName("pk_child_diagnosis");
+
+ b.HasIndex("DiagnosisId");
+
+ b.ToTable("child_diagnosis", (string)null);
+
+ b.HasComment("子诊断");
+ });
+
+ modelBuilder.Entity("DiagnosisDiagnosis", b =>
+ {
+ b.Property("DiagnosisId")
+ .HasColumnType("uuid");
+
+ b.Property("ParentDiagnosisId")
+ .HasColumnType("uuid");
+
+ b.HasKey("DiagnosisId", "ParentDiagnosisId");
+
+ b.ToTable("DiagnosisDiagnosis");
+ });
+
+ modelBuilder.Entity("RoomAsbitem", b =>
+ {
+ b.Property("RoomId")
+ .HasMaxLength(5)
+ .HasColumnType("uuid")
+ .HasColumnName("room_id")
+ .IsFixedLength();
+
+ b.Property("AsbitemId")
+ .HasMaxLength(6)
+ .HasColumnType("uuid")
+ .HasColumnName("asbitem_id")
+ .IsFixedLength();
+
+ b.HasKey("RoomId", "AsbitemId")
+ .HasName("pk_room_asbitem");
+
+ b.HasIndex("AsbitemId");
+
+ b.ToTable("room_asbitem", (string)null);
+
+ b.HasComment("房间包含组合项目设置");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Books.Student", b =>
+ {
+ b.Property("Sid")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uuid")
+ .HasColumnName("sid");
+
+ b.Property("Cid")
+ .HasColumnType("text");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uuid")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("DeletionTime");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("boolean")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Name")
+ .HasColumnType("text");
+
+ b.Property("Uid")
+ .HasColumnType("uuid");
+
+ b.HasKey("Sid");
+
+ b.ToTable("student");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Books.TestA", b =>
+ {
+ b.Property("AId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uuid")
+ .IsFixedLength()
+ .HasComment("编号");
+
+ b.Property("AName")
+ .HasColumnType("text");
+
+ b.HasKey("AId");
+
+ b.ToTable("testa");
+
+ b.HasComment("组合项目");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Books.TestB", b =>
+ {
+ b.Property("BId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uuid");
+
+ b.Property("AId")
+ .HasColumnType("uuid")
+ .IsFixedLength()
+ .HasComment("编号");
+
+ b.Property("AName")
+ .HasColumnType("text");
+
+ b.Property("TestAsAId")
+ .HasColumnType("uuid");
+
+ b.HasKey("BId");
+
+ b.HasIndex("TestAsAId");
+
+ b.ToTable("testb");
+
+ b.HasComment("组合项目");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.Asbitem", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength()
+ .HasComment("编号");
+
+ b.Property("ClinicalMeaning")
+ .HasMaxLength(100)
+ .HasColumnType("character varying(100)")
+ .HasColumnName("clinical_meaning");
+
+ b.Property("CreationTime")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime")
+ .HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DefaultResult")
+ .HasMaxLength(100)
+ .HasColumnType("character varying(100)")
+ .HasColumnName("default_result");
+
+ b.Property("DeviceTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("device_type_id")
+ .IsFixedLength();
+
+ b.Property("DiagnosisFunction")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("diagnosis_function");
+
+ b.Property("DisplayName")
+ .HasMaxLength(30)
+ .HasColumnType("character varying(30)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order");
+
+ b.Property("ForSexId")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("for_sex_id")
+ .HasDefaultValueSql("'A'::bpchar");
+
+ b.Property("InvoiceItemTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("invoice_item_type_id")
+ .IsFixedLength();
+
+ b.Property("IsActive")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_active");
+
+ b.Property("IsBeforeEat")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_before_eat");
+
+ b.Property("IsCheck")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_check");
+
+ b.Property("IsContinueProcess")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_continue_process");
+
+ b.Property("IsDiagnosisFunction")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_diagnosis_function");
+
+ b.Property("IsItemResultMerger")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_item_result_merger");
+
+ b.Property("IsPictureRotate")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_picture_rotate");
+
+ b.Property("ItemTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("item_type_id")
+ .IsFixedLength();
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Price")
+ .HasPrecision(8, 2)
+ .HasColumnType("numeric(8,2)")
+ .HasColumnName("price");
+
+ b.Property("QueueTime")
+ .HasPrecision(3, 1)
+ .HasColumnType("numeric(3,1)")
+ .HasColumnName("queue_time");
+
+ b.Property("ShortName")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("short_name");
+
+ b.Property("SimpleCode")
+ .HasMaxLength(30)
+ .HasColumnType("character varying(30)")
+ .HasColumnName("simple_code");
+
+ b.HasKey("Id");
+
+ b.HasIndex("InvoiceItemTypeId");
+
+ b.HasIndex("ItemTypeId");
+
+ b.HasIndex(new[] { "DisplayName" }, "ix_asbitem")
+ .IsUnique();
+
+ b.ToTable("asbitem");
+
+ b.HasComment("组合项目");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.AsbitemDetail", b =>
+ {
+ b.Property("AsbitemId")
+ .HasColumnType("uuid")
+ .HasColumnName("asbitem_id")
+ .IsFixedLength();
+
+ b.Property("ItemId")
+ .HasColumnType("uuid")
+ .HasColumnName("item_id")
+ .IsFixedLength();
+
+ b.HasKey("AsbitemId", "ItemId")
+ .HasName("pk_department_asbitem_detail");
+
+ b.HasIndex("ItemId");
+
+ b.ToTable("asbitem_detail");
+
+ b.HasComment("组合项目包含项目");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.AsbitemGuide", b =>
+ {
+ b.Property("OrganizationUnitId")
+ .HasColumnType("uuid")
+ .HasColumnName("organization_unit_id")
+ .IsFixedLength();
+
+ b.Property("AsbitemId")
+ .HasColumnType("uuid")
+ .HasColumnName("asbitem_id")
+ .IsFixedLength();
+
+ b.Property("ForSexId")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("for_sex_id");
+
+ b.Property("Guide")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("guide");
+
+ b.HasKey("OrganizationUnitId", "AsbitemId", "ForSexId")
+ .HasName("pk_department_asbitem_guide");
+
+ b.ToTable("asbitem_guide");
+
+ b.HasComment("体检中心组和项目指引内容");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.AsbitemPriceItem", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("Amount")
+ .HasColumnType("smallint")
+ .HasColumnName("amount");
+
+ b.Property("AsbitemId")
+ .HasColumnType("uuid")
+ .HasColumnName("asbitem_id")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PriceItemId")
+ .HasColumnType("uuid")
+ .HasColumnName("price_item_id")
+ .IsFixedLength();
+
+ b.HasKey("Id");
+
+ b.ToTable("asbitem_price_item");
+
+ b.HasComment("组和项目包含价表项目");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.BigtextResultConclusion", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("BigtextResultTemplateId")
+ .HasColumnType("uuid")
+ .HasColumnName("bigtext_result_template_id")
+ .IsFixedLength();
+
+ b.Property("Conclusion")
+ .HasMaxLength(200)
+ .HasColumnType("character varying(200)")
+ .HasColumnName("conclusion");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayOrder")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("display_order")
+ .HasDefaultValueSql("1");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("BigtextResultTemplateId");
+
+ b.ToTable("bigtext_result_conclusion");
+
+ b.HasComment("大文本结果结论");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.BigtextResultDescription", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("BigtextResultTemplateId")
+ .HasColumnType("uuid")
+ .HasColumnName("bigtext_result_template_id")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("Description")
+ .HasMaxLength(200)
+ .HasColumnType("character varying(200)")
+ .HasColumnName("description");
+
+ b.Property("DisplayOrder")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("display_order")
+ .HasDefaultValueSql("1");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("BigtextResultTemplateId");
+
+ b.ToTable("bigtext_result_description");
+
+ b.HasComment("大文本结果描述");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.BigtextResultTemplate", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("BigtextResultTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("bigtext_result_type_id")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayName")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("SimpleCode")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("simple_code");
+
+ b.HasKey("Id");
+
+ b.HasIndex("BigtextResultTypeId");
+
+ b.ToTable("bigtext_result_template");
+
+ b.HasComment("大文本结果模板");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.BigtextResultType", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayName")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order");
+
+ b.Property("ItemTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("item_type_id")
+ .IsFixedLength();
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("ParentId")
+ .HasColumnType("uuid")
+ .HasColumnName("parent_id")
+ .IsFixedLength();
+
+ b.Property("PathCode")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("path_code");
+
+ b.Property("SimpleCode")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("simple_code");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ItemTypeId");
+
+ b.ToTable("bigtext_result_type");
+
+ b.HasComment("大文本结果类别");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.BirthPlace", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("CountryCode")
+ .HasMaxLength(6)
+ .HasColumnType("character varying(6)")
+ .HasColumnName("country_code");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayName")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("display_order")
+ .HasDefaultValueSql("1");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("SimpleCode")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("simple_code");
+
+ b.HasKey("Id");
+
+ b.HasIndex(new[] { "DisplayName" }, "ix_birth_place")
+ .IsUnique();
+
+ b.ToTable("birth_place");
+
+ b.HasComment("出生地");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CardBill", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .HasComment("编号");
+
+ b.Property("BillFlag")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("bill_flag")
+ .HasDefaultValueSql("'0'::bpchar")
+ .HasComment("记账标志");
+
+ b.Property("BillMoney")
+ .HasPrecision(10, 2)
+ .HasColumnType("numeric(10,2)")
+ .HasColumnName("bill_money")
+ .HasComment("记账金额");
+
+ b.Property("CardRegisterId")
+ .HasColumnType("uuid")
+ .HasColumnName("card_register_id")
+ .HasComment("卡登记编号");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PayModeId")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(4)
+ .HasColumnType("character(4)")
+ .HasColumnName("pay_mode_id")
+ .HasDefaultValueSql("'1'::bpchar")
+ .IsFixedLength()
+ .HasComment("支付方式");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CardRegisterId");
+
+ b.HasIndex("PayModeId");
+
+ b.ToTable("card_bill");
+
+ b.HasComment("卡记账记录");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CardRegister", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .HasComment("编号");
+
+ b.Property("CardFlag")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("card_flag")
+ .HasDefaultValueSql("0")
+ .HasComment("使用标志");
+
+ b.Property("CardNo")
+ .HasMaxLength(30)
+ .HasColumnType("character varying(30)")
+ .HasColumnName("card_no")
+ .HasComment("卡号");
+
+ b.Property("CardPassword")
+ .HasMaxLength(10)
+ .HasColumnType("character varying(10)")
+ .HasColumnName("card_password");
+
+ b.Property("CardTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("card_type_id")
+ .IsFixedLength()
+ .HasComment("卡类型");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("CustomerName")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("customer_name")
+ .HasComment("领用者");
+
+ b.Property("Discount")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("discount")
+ .HasDefaultValueSql("100")
+ .HasComment("折扣");
+
+ b.Property("ExpiryDate")
+ .HasColumnType("date")
+ .HasColumnName("expiry_date")
+ .HasComment("有效期");
+
+ b.Property("IdNo")
+ .HasMaxLength(18)
+ .HasColumnType("character varying(18)")
+ .HasColumnName("id_no")
+ .HasComment("身份证号");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("MobileTelephone")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("mobile_telephone")
+ .HasComment("手机");
+
+ b.Property("OrganizationUnitId")
+ .HasColumnType("uuid")
+ .HasColumnName("organization_unit_id")
+ .IsFixedLength();
+
+ b.Property("Remark")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("remark")
+ .HasComment("备注");
+
+ b.Property("Telephone")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("telephone")
+ .HasComment("电话");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CardTypeId");
+
+ b.HasIndex("OrganizationUnitId");
+
+ b.HasIndex(new[] { "CardNo", "CardFlag" }, "ix_card_register")
+ .IsUnique();
+
+ b.ToTable("card_register");
+
+ b.HasComment("会员卡登记");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CardType", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength()
+ .HasComment("编号");
+
+ b.Property("CardModeId")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("card_mode_id")
+ .HasDefaultValueSql("0")
+ .HasComment("卡模式");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("Discount")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("discount")
+ .HasDefaultValueSql("100")
+ .HasComment("折扣");
+
+ b.Property("DisplayName")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("display_name")
+ .HasComment("名称");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order")
+ .HasComment("显示顺序");
+
+ b.Property("ExpiryDay")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("expiry_day")
+ .HasDefaultValueSql("3650")
+ .HasComment("有效期");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Remark")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("remark")
+ .HasComment("备注");
+
+ b.HasKey("Id");
+
+ b.ToTable("card_type");
+
+ b.HasComment("会员卡类别");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.Charge", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .HasComment("收据号");
+
+ b.Property("ChargeFlag")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("charge_flag")
+ .HasDefaultValueSql("0");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("InvoiceNo")
+ .HasMaxLength(30)
+ .HasColumnType("character varying(30)")
+ .HasColumnName("invoice_no");
+
+ b.Property("InvoiceOrgName")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("invoice_org_name");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PatientRegisterId")
+ .HasColumnType("uuid")
+ .HasColumnName("patient_register_id")
+ .HasComment("登记流水号");
+
+ b.Property("SettleAccountId")
+ .HasColumnType("uuid")
+ .HasColumnName("settle_account_id");
+
+ b.HasKey("Id");
+
+ b.HasIndex(new[] { "PatientRegisterId" }, "fki_fk_patient_register_charge");
+
+ b.HasIndex(new[] { "PatientRegisterId" }, "ix_charge");
+
+ b.ToTable("charge");
+
+ b.HasComment("收费主档");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.ChargeAsbitem", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid");
+
+ b.Property("Amount")
+ .HasColumnType("smallint")
+ .HasColumnName("amount");
+
+ b.Property("AsbitemId")
+ .HasColumnType("uuid")
+ .HasColumnName("asbitem_id")
+ .IsFixedLength()
+ .HasComment("组合项目");
+
+ b.Property("ChargeId")
+ .HasColumnType("uuid")
+ .HasColumnName("charge_id")
+ .HasComment("收据号");
+
+ b.Property("ChargePrice")
+ .HasPrecision(10, 2)
+ .HasColumnType("numeric(10,2)")
+ .HasColumnName("charge_price")
+ .HasComment("价格");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("RegisterAsbitemId")
+ .HasColumnType("uuid")
+ .HasColumnName("register_asbitem_id");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AsbitemId");
+
+ b.HasIndex("ChargeId");
+
+ b.ToTable("charge_asbitem");
+
+ b.HasComment("收费包含组合项目");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.ChargeBack", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .HasComment("退费编号");
+
+ b.Property("ChargeId")
+ .HasColumnType("uuid")
+ .HasColumnName("charge_id")
+ .HasComment("收据号");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("SettleAccountId")
+ .HasColumnType("uuid")
+ .HasColumnName("settle_account_id");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ChargeId");
+
+ b.ToTable("charge_back");
+
+ b.HasComment("退费主档");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.ChargeBackPay", b =>
+ {
+ b.Property("ChargeBackId")
+ .HasColumnType("uuid")
+ .HasColumnName("charge_back_id");
+
+ b.Property("PayModeId")
+ .HasMaxLength(4)
+ .HasColumnType("character(4)")
+ .HasColumnName("pay_mode_id")
+ .IsFixedLength();
+
+ b.Property("BackMoeny")
+ .HasPrecision(10, 2)
+ .HasColumnType("numeric(10,2)")
+ .HasColumnName("back_moeny");
+
+ b.HasKey("ChargeBackId", "PayModeId")
+ .HasName("pk_department_charge_back_pay");
+
+ b.HasIndex("PayModeId");
+
+ b.ToTable("charge_back_pay");
+
+ b.HasComment("退费支付方式");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.ChargePay", b =>
+ {
+ b.Property("ChargeId")
+ .HasColumnType("uuid")
+ .HasColumnName("charge_id")
+ .HasComment("收据号");
+
+ b.Property("PayModeId")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(4)
+ .HasColumnType("character(4)")
+ .HasColumnName("pay_mode_id")
+ .HasDefaultValueSql("'1'::bpchar")
+ .IsFixedLength()
+ .HasComment("支付方式");
+
+ b.Property("CardBillId")
+ .HasColumnType("uuid")
+ .HasColumnName("card_bill_id");
+
+ b.Property("ChargeMoney")
+ .HasPrecision(10, 2)
+ .HasColumnType("numeric(10,2)")
+ .HasColumnName("charge_money")
+ .HasComment("金额");
+
+ b.HasKey("ChargeId", "PayModeId")
+ .HasName("pk_department_charge_pay");
+
+ b.HasIndex("PayModeId");
+
+ b.ToTable("charge_pay");
+
+ b.HasComment("收费支付方式");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.ChargePriceItem", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid");
+
+ b.Property("Amount")
+ .HasColumnType("smallint")
+ .HasColumnName("amount");
+
+ b.Property("ChargeAsbitemId")
+ .HasColumnType("uuid")
+ .HasColumnName("charge_asbitem_id");
+
+ b.Property("ChargePrice")
+ .HasPrecision(10, 2)
+ .HasColumnType("numeric(10,2)")
+ .HasColumnName("charge_price");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PriceItemId")
+ .HasColumnType("uuid")
+ .HasColumnName("price_item_id");
+
+ b.HasKey("Id");
+
+ b.HasIndex(new[] { "ChargeAsbitemId" }, "fki_fk_charge_asbitem");
+
+ b.HasIndex(new[] { "ChargeAsbitemId", "PriceItemId" }, "ix_charge_price_item");
+
+ b.ToTable("charge_price_item");
+
+ b.HasComment("收费价表项目");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CommonChar", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("CommonCharTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("common_char_type_id")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayName")
+ .HasMaxLength(1)
+ .HasColumnType("character varying(1)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("SimpleCode")
+ .HasMaxLength(1)
+ .HasColumnType("character varying(1)")
+ .HasColumnName("simple_code");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CommonCharTypeId");
+
+ b.HasIndex(new[] { "DisplayName" }, "ix_common_char")
+ .IsUnique();
+
+ b.ToTable("common_char");
+
+ b.HasComment("常用字符");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CommonCharType", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayName")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("display_order")
+ .HasDefaultValueSql("1");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.HasKey("Id");
+
+ b.HasIndex(new[] { "DisplayName" }, "ix_common_char_type")
+ .IsUnique();
+
+ b.ToTable("common_char_type");
+
+ b.HasComment("常用字符类别");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.ContactMethod", b =>
+ {
+ b.Property("ContactPersonId")
+ .HasColumnType("uuid")
+ .HasColumnName("contact_person_id")
+ .IsFixedLength();
+
+ b.Property("ContactMethodValue")
+ .HasMaxLength(15)
+ .HasColumnType("character varying(15)")
+ .HasColumnName("contact_method_value");
+
+ b.Property("ContactMethodType")
+ .ValueGeneratedOnAdd()
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("contact_method_type")
+ .HasDefaultValueSql("'M'::bpchar");
+
+ b.HasKey("ContactPersonId", "ContactMethodValue")
+ .HasName("pk_department_contact_method");
+
+ b.ToTable("contact_method");
+
+ b.HasComment("联系方式");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.ContactPerson", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("CustomerOrgId")
+ .HasColumnType("uuid")
+ .HasColumnName("customer_org_id")
+ .IsFixedLength();
+
+ b.Property("DisplayName")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Remark")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("remark");
+
+ b.Property("SimpleCode")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("simple_code");
+
+ b.Property("Title")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("title");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CustomerOrgId");
+
+ b.HasIndex(new[] { "DisplayName" }, "ix_contact");
+
+ b.HasIndex(new[] { "SimpleCode" }, "ix_contact_simple_code");
+
+ b.ToTable("contact_person");
+
+ b.HasComment("联系人");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CriticalValue", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("CriticalValueTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("critical_value_type_id")
+ .IsFixedLength();
+
+ b.Property("DisplayName")
+ .HasMaxLength(100)
+ .HasColumnType("character varying(100)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CriticalValueTypeId");
+
+ b.HasIndex(new[] { "DisplayName" }, "ix_critical_value")
+ .IsUnique();
+
+ b.ToTable("critical_value");
+
+ b.HasComment("危急值关键字设置");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CriticalValueType", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength();
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayName")
+ .HasMaxLength(40)
+ .HasColumnType("character varying(40)")
+ .HasColumnName("display_name");
+
+ b.Property("DisplayOrder")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("display_order")
+ .HasDefaultValueSql("1");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("ParentId")
+ .HasColumnType("uuid")
+ .HasColumnName("parent_id")
+ .IsFixedLength();
+
+ b.Property("PathCode")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("path_code");
+
+ b.HasKey("Id");
+
+ b.HasIndex(new[] { "DisplayName" }, "ix_critical_value_type")
+ .IsUnique();
+
+ b.ToTable("critical_value_type");
+
+ b.HasComment("危急值类别");
+ });
+
+ modelBuilder.Entity("Shentun.Peis.Models.CustomerOrg", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uuid")
+ .IsFixedLength()
+ .HasComment("单位ID");
+
+ b.Property("Accounts")
+ .HasMaxLength(30)
+ .HasColumnType("character varying(30)")
+ .HasColumnName("accounts")
+ .HasComment("银行帐号");
+
+ b.Property("Address")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("address")
+ .HasComment("联系地址");
+
+ b.Property("Bank")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("bank")
+ .HasComment("业务银行");
+
+ b.Property("ConcurrencyStamp")
+ .HasMaxLength(40)
+ .HasColumnType("character varying(40)")
+ .HasColumnName("concurrency_stamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uuid")
+ .HasColumnName("CreatorId");
+
+ b.Property("DisplayName")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("display_name")
+ .HasComment("单位名称");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("integer")
+ .HasColumnName("display_order")
+ .HasComment("显示顺序");
+
+ b.Property("Fax")
+ .HasMaxLength(30)
+ .HasColumnType("character varying(30)")
+ .HasColumnName("fax")
+ .HasComment("传真");
+
+ b.Property("InvoiceName")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("invoice_name");
+
+ b.Property("IsLock")
+ .HasMaxLength(1)
+ .HasColumnType("character(1)")
+ .HasColumnName("is_lock");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uuid")
+ .HasColumnName("LastModifierId");
+
+ b.Property("OrgTypeId")
+ .HasColumnType("uuid")
+ .HasColumnName("org_type_id")
+ .IsFixedLength()
+ .HasComment("单位性质");
+
+ b.Property("OrganizationUnitId")
+ .HasColumnType("uuid")
+ .HasColumnName("organization_unit_id");
+
+ b.Property("ParentId")
+ .HasColumnType("uuid")
+ .HasColumnName("parent_id")
+ .IsFixedLength();
+
+ b.Property("PathCode")
+ .HasMaxLength(60)
+ .HasColumnType("character varying(60)")
+ .HasColumnName("path_code");
+
+ b.Property