You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

8417 lines
349 KiB

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Shentun.WebPeis.EntityFrameworkCore;
#nullable disable
namespace Shentun.WebPeis.Migrations
{
[DbContext(typeof(WebPeisDbContext))]
partial class WebPeisDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Shentun.WebPeis.Models.AppOrganizationUnit", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("Code")
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(95)
.HasColumnType("character varying(95)")
.HasColumnName("code");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("DisplayName")
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("display_name");
b.Property<string>("ExtraProperties")
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<char>("IsMedicalCenter")
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_medical_center");
b.Property<Guid?>("ParentId")
.ValueGeneratedOnUpdateSometimes()
.HasColumnType("uuid")
.HasColumnName("parent_id");
b.Property<Guid?>("TenantId")
.ValueGeneratedOnUpdateSometimes()
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_organization_units");
b.ToTable("abp_organization_units", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointPatientRegister", b =>
{
b.Property<Guid>("AppointPatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("appoint_patient_register_id");
b.Property<DateTime>("AppointDate")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("appoint_date")
.HasDefaultValueSql("date(timezone('UTC-8'::text, now()))");
b.Property<char>("ChargeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("charge_flag")
.HasDefaultValueSql("'0'::bpchar");
b.Property<char>("CompleteFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("complete_flag")
.HasDefaultValueSql("'0'::bpchar");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("CustomerOrgGroupId")
.HasColumnType("uuid")
.HasColumnName("customer_org_group_id");
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id");
b.Property<Guid>("CustomerOrgRegisterId")
.HasColumnType("uuid")
.HasColumnName("customer_org_register_id");
b.Property<decimal?>("Height")
.HasPrecision(4, 1)
.HasColumnType("numeric(4,1)")
.HasColumnName("height")
.HasComment("身高");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id");
b.Property<Guid?>("MedicalPackageId")
.HasColumnType("uuid")
.HasColumnName("medical_package_id");
b.Property<Guid?>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id");
b.Property<Guid>("PersonId")
.HasColumnType("uuid")
.HasColumnName("person_id");
b.Property<char>("PregnantFlag")
.ValueGeneratedOnAdd()
.HasColumnType("character(1)")
.HasColumnName("pregnant_flag")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("备孕标志");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("remark");
b.Property<decimal?>("Weight")
.HasPrecision(5, 2)
.HasColumnType("numeric(5,2)")
.HasColumnName("weight")
.HasComment("体重");
b.HasKey("AppointPatientRegisterId")
.HasName("appoint_patient_register_pkey");
b.HasIndex(new[] { "PersonId" }, "ix_appoint_patient_register_person");
b.ToTable("appoint_patient_register", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointRegisterAsbitem", b =>
{
b.Property<Guid>("AppointRegisterAsbitemId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("appoint_register_asbitem_id");
b.Property<short>("Amount")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)1)
.HasColumnName("amount");
b.Property<Guid>("AppointPatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("appoint_patient_register_id");
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id");
b.Property<decimal>("ChargePrice")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("charge_price");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<char>("IsCharge")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_charge")
.HasDefaultValueSql("'N'::bpchar");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("PayTypeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("pay_type_flag")
.HasDefaultValueSql("0");
b.Property<decimal>("StandardPrice")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("standard_price");
b.HasKey("AppointRegisterAsbitemId")
.HasName("appoint_register_asbitem_id");
b.HasIndex("AppointPatientRegisterId");
b.HasIndex(new[] { "AppointRegisterAsbitemId", "AsbitemId" }, "ix_appoint_register_asbitem")
.IsUnique();
b.ToTable("appoint_register_asbitem", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointSchedule", b =>
{
b.Property<Guid>("AppointScheduleId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_id");
b.Property<DateTime>("AppointDate")
.HasColumnType("timestamp(0) without time zone")
.HasColumnName("appoint_date");
b.Property<string>("ConcurrencyStamp")
.IsRequired()
.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")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<char>("IsWork")
.HasColumnType("character(1)")
.HasColumnName("is_work");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id");
b.Property<int>("SingleNumberLimit")
.HasColumnType("integer")
.HasColumnName("single_number_limit");
b.HasKey("AppointScheduleId")
.HasName("appoint_schedule_pkey");
b.HasIndex(new[] { "AppointDate" }, "ix_appoint_schedule")
.IsUnique();
b.ToTable("appoint_schedule", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleCustomerOrg", b =>
{
b.Property<Guid>("AppointScheduleCustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_customer_org_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<int?>("NumberLimit")
.HasColumnType("integer")
.HasColumnName("number_limit");
b.Property<DateTime?>("StartDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("start_date");
b.Property<DateTime?>("StopDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("stop_date");
b.HasKey("AppointScheduleCustomerOrgId")
.HasName("appoint_schedule_customer_org_pkey");
b.ToTable("appoint_schedule_customer_org", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleExcludeCustomerOrg", b =>
{
b.Property<Guid>("AppointScheduleExcludeCustomerOrgId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_exclude_customer_org_id");
b.Property<Guid>("AppointScheduleId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_id")
.HasComment("预约计划Id");
b.Property<string>("ConcurrencyStamp")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id")
.HasComment("单位ID");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("AppointScheduleExcludeCustomerOrgId")
.HasName("appoint_schedule_exclude_customer_org_pkey");
b.ToTable("appoint_schedule_exclude_customer_org", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleTemplate", b =>
{
b.Property<Guid>("AppointScheduleTemplateId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_template_id");
b.Property<string>("ConcurrencyStamp")
.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")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<char>("IsWork")
.HasColumnType("character(1)")
.HasColumnName("is_work");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id");
b.Property<int>("SingleNumberLimit")
.HasColumnType("integer")
.HasColumnName("single_number_limit");
b.Property<int>("WeekId")
.HasColumnType("integer")
.HasColumnName("week_id");
b.HasKey("AppointScheduleTemplateId")
.HasName("appoint_schedule_template_pkey");
b.HasIndex(new[] { "WeekId" }, "ix_appoint_schedule_template")
.IsUnique();
b.ToTable("appoint_schedule_template", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleTemplateTime", b =>
{
b.Property<Guid>("AppointScheduleTemplateTimeId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_template_time_id");
b.Property<Guid>("AppointScheduleTemplateId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_template_id");
b.Property<string>("ConcurrencyStamp")
.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")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<int>("NumberLimit")
.HasColumnType("integer")
.HasColumnName("number_limit");
b.Property<TimeOnly?>("StartTime")
.HasColumnType("time without time zone")
.HasColumnName("start_time");
b.Property<TimeOnly?>("StopTime")
.HasColumnType("time without time zone")
.HasColumnName("stop_time");
b.HasKey("AppointScheduleTemplateTimeId")
.HasName("appoint_schedule_template_time_pkey");
b.HasIndex("AppointScheduleTemplateId");
b.ToTable("appoint_schedule_template_time", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleTime", b =>
{
b.Property<Guid>("AppointScheduleTimeId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_time_id");
b.Property<int>("AppointNumber")
.HasColumnType("integer")
.HasColumnName("appoint_number");
b.Property<Guid>("AppointScheduleId")
.HasColumnType("uuid")
.HasColumnName("appoint_schedule_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<int>("NumberLimit")
.HasColumnType("integer")
.HasColumnName("number_limit");
b.Property<TimeOnly>("StartTime")
.HasColumnType("time without time zone")
.HasColumnName("start_time");
b.Property<TimeOnly>("StopTime")
.HasColumnType("time without time zone")
.HasColumnName("stop_time");
b.HasKey("AppointScheduleTimeId")
.HasName("appoint_schedule_time_pkey");
b.HasIndex("AppointScheduleId");
b.ToTable("appoint_schedule_time", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.Asbitem", b =>
{
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id")
.HasComment("编号");
b.Property<string>("AsbitemName")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("asbitem_name")
.HasComment("名称");
b.Property<string>("ClinicalMeaning")
.HasMaxLength(500)
.HasColumnType("character varying(500)")
.HasColumnName("clinical_meaning")
.HasComment("临床意义");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DefaultResult")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("default_result")
.HasComment("默认结果");
b.Property<Guid?>("DeviceTypeId")
.HasColumnType("uuid")
.HasColumnName("device_type_id")
.HasComment("仪器类别");
b.Property<Guid?>("DiseaseScreeningTypeId")
.HasColumnType("uuid")
.HasColumnName("disease_screening_type_id")
.HasComment("职业病类别");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<char>("ForPregnantFlag")
.ValueGeneratedOnAdd()
.HasColumnType("character(1)")
.HasColumnName("for_pregnant_flag")
.HasDefaultValueSql("'A'")
.HasComment("备怀孕期间禁止检查");
b.Property<char>("ForSexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("for_sex_id")
.HasDefaultValueSql("'A'::bpchar")
.HasComment("适用性别,M-男,F-女,A-全部");
b.Property<char>("IsActive")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active")
.HasDefaultValueSql("'Y'::bpchar")
.HasComment("是启用");
b.Property<char>("IsBeforeEat")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_before_eat")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("餐前项目");
b.Property<char>("IsCheck")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_check")
.HasDefaultValueSql("'Y'::bpchar")
.HasComment("是检查项目");
b.Property<char>("IsPictureRotate")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_picture_rotate")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("体检报告图片旋转90°");
b.Property<char?>("IsWebAppoint")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_web_appoint");
b.Property<Guid>("ItemTypeId")
.HasColumnType("uuid")
.HasColumnName("item_type_id")
.HasComment("项目类别");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("MaritalStatusId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("marital_status_id")
.HasDefaultValueSql("'A'::bpchar")
.HasComment("适用婚姻状况,0-未婚,1-已婚,A-全部");
b.Property<decimal>("Price")
.HasPrecision(8, 2)
.HasColumnType("numeric(8,2)")
.HasColumnName("price")
.HasComment("价格");
b.Property<string>("ShortName")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("short_name")
.HasComment("简称");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("simple_code");
b.Property<string>("Warn")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("warn")
.HasComment("注意事项");
b.HasKey("AsbitemId")
.HasName("pk_asbitem");
b.HasIndex(new[] { "ItemTypeId" }, "IX_asbitem_item_type_id");
b.HasIndex(new[] { "AsbitemName" }, "ix_asbitem")
.IsUnique();
b.ToTable("asbitem", null, t =>
{
t.HasComment("组合项目");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.AsbitemDetail", b =>
{
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id");
b.Property<Guid>("ItemId")
.HasColumnType("uuid")
.HasColumnName("item_id")
.HasComment("项目编码");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.HasKey("AsbitemId", "ItemId")
.HasName("pk_department_asbitem_detail");
b.HasIndex(new[] { "ItemId" }, "IX_asbitem_detail_item_id");
b.ToTable("asbitem_detail", null, t =>
{
t.HasComment("组合项目包含项目");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.AsbitemRecommendLevel", b =>
{
b.Property<short>("AsbitemRecommendLevelId")
.HasColumnType("smallint")
.HasColumnName("asbitem_recommend_level_id");
b.Property<string>("AsbitemRecommendLevelName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("asbitem_recommend_level_name");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("AsbitemRecommendLevelId")
.HasName("pk_asbitem_recommend_level");
b.HasIndex(new[] { "AsbitemRecommendLevelName" }, "ix_asbitem_recommend_level")
.IsUnique();
b.ToTable("asbitem_recommend_level", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.Charge", b =>
{
b.Property<Guid>("ChargeId")
.HasColumnType("uuid")
.HasColumnName("charge_id")
.HasComment("收据号");
b.Property<Guid>("AppointPatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("appoint_patient_register_id")
.HasComment("登记流水号");
b.Property<char>("ChargeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("charge_flag")
.HasDefaultValueSql("0");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("InvoiceNo")
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("invoice_no");
b.Property<string>("InvoiceOrgName")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("invoice_org_name");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid?>("SettleAccountId")
.HasColumnType("uuid")
.HasColumnName("settle_account_id");
b.Property<DateTime?>("SettleTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("settle_time");
b.HasKey("ChargeId")
.HasName("charge_pkey");
b.HasIndex("AppointPatientRegisterId");
b.ToTable("charge", null, t =>
{
t.HasComment("收费主档");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeAsbitem", b =>
{
b.Property<Guid>("ChargeAsbitemId")
.HasColumnType("uuid")
.HasColumnName("charge_asbitem_id");
b.Property<short>("Amount")
.HasColumnType("smallint")
.HasColumnName("amount");
b.Property<Guid?>("AppointRegisterAsbitemId")
.HasColumnType("uuid")
.HasColumnName("appoint_register_asbitem_id");
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id")
.HasComment("组合项目");
b.Property<Guid>("ChargeId")
.HasColumnType("uuid")
.HasColumnName("charge_id")
.HasComment("收据号");
b.Property<decimal>("ChargePrice")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("charge_price")
.HasComment("价格");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("ChargeAsbitemId")
.HasName("charge_asbitem_pkey");
b.HasIndex(new[] { "ChargeId", "AsbitemId" }, "ix_charge_asbitem")
.IsUnique();
b.ToTable("charge_asbitem", null, t =>
{
t.HasComment("收费包含组合项目");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeBack", b =>
{
b.Property<Guid>("ChargeBackId")
.HasColumnType("uuid")
.HasColumnName("charge_back_id");
b.Property<Guid>("ChargeId")
.HasColumnType("uuid")
.HasColumnName("charge_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid?>("SettleAccountId")
.HasColumnType("uuid")
.HasColumnName("settle_account_id");
b.Property<DateTime?>("SettleTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("settle_time");
b.HasKey("ChargeBackId")
.HasName("charge_back_pkey");
b.HasIndex("ChargeId");
b.ToTable("charge_back", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeBackAsbitem", b =>
{
b.Property<Guid>("ChargeBackAsbitemId")
.HasColumnType("uuid")
.HasColumnName("charge_bak_asbitem_id");
b.Property<short>("Amount")
.HasColumnType("smallint")
.HasColumnName("amount");
b.Property<Guid>("ChargeAsbitemId")
.HasColumnType("uuid")
.HasColumnName("charge_asbitem_id");
b.Property<Guid>("ChargeBackId")
.HasColumnType("uuid")
.HasColumnName("charge_back_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("ChargeBackAsbitemId")
.HasName("pk_charge_back_asbitem");
b.HasIndex("ChargeAsbitemId");
b.HasIndex(new[] { "ChargeBackId", "ChargeAsbitemId" }, "IX_charge_bak_asbitem_asbitem_id")
.IsUnique();
b.ToTable("charge_back_asbitem", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeBackPay", b =>
{
b.Property<Guid>("ChargeBackPayId")
.HasColumnType("uuid")
.HasColumnName("charge_back_pay_id");
b.Property<decimal>("BackMoeny")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("back_moeny")
.HasComment("退费金额");
b.Property<Guid?>("CardBillId")
.HasColumnType("uuid")
.HasColumnName("card_bill_id")
.HasComment("会员卡ID");
b.Property<Guid>("ChargeBackId")
.HasColumnType("uuid")
.HasColumnName("charge_back_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("PayModeId")
.IsRequired()
.HasMaxLength(4)
.HasColumnType("character varying(4)")
.HasColumnName("pay_mode_id")
.HasComment("支付方式ID");
b.HasKey("ChargeBackPayId")
.HasName("charge_back_pay_pkey");
b.HasIndex(new[] { "ChargeBackId", "PayModeId" }, "ix_charge_back_pay");
b.ToTable("charge_back_pay", null, t =>
{
t.HasComment("退费支付方式");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargePay", b =>
{
b.Property<Guid>("ChargePayId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("charge_pay_id");
b.Property<Guid?>("CardBillId")
.HasColumnType("uuid")
.HasColumnName("card_bill_id")
.HasComment("会员卡ID");
b.Property<Guid>("ChargeId")
.HasColumnType("uuid")
.HasColumnName("charge_id")
.HasComment("收据号");
b.Property<decimal>("ChargeMoney")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("charge_money")
.HasComment("金额");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("PayModeId")
.IsRequired()
.HasMaxLength(4)
.HasColumnType("character varying(4)")
.HasColumnName("pay_mode_id")
.HasComment("支付方式");
b.HasKey("ChargePayId")
.HasName("charge_pay_key");
b.HasIndex(new[] { "ChargeId", "PayModeId" }, "ix_charge_pay")
.IsUnique();
b.ToTable("charge_pay", null, t =>
{
t.HasComment("收费方式");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.CompanyIntroduction", b =>
{
b.Property<Guid>("CompanyIntroductionId")
.HasColumnType("uuid")
.HasColumnName("company_introduction_id");
b.Property<string>("ConcurrencyStamp")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("Content")
.IsRequired()
.HasMaxLength(4000)
.HasColumnType("character varying(4000)")
.HasColumnName("content")
.HasComment("内容");
b.Property<char>("ContentType")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("content_type")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("内容类型 0-标题 1-段落内容");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("CompanyIntroductionId")
.HasName("pk_company_introduction");
b.ToTable("company_introduction", null, t =>
{
t.HasComment("企业介绍");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrg", b =>
{
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id")
.HasComment("单位ID");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("CountryOrgCode")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("country_org_code");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("CustomerOrgName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("customer_org_name")
.HasComment("单位名称");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<char>("IsActive")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active")
.HasDefaultValueSql("'Y'::bpchar")
.HasComment("状态");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id")
.HasComment("体检中心ID");
b.Property<Guid?>("ParentId")
.HasColumnType("uuid")
.HasColumnName("parent_id")
.HasComment("父编号");
b.Property<string>("PathCode")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("character varying(60)")
.HasColumnName("path_code")
.HasComment("路径编码");
b.Property<string>("Remark")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("remark")
.HasComment("备注");
b.Property<string>("ShortName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("short_name")
.HasComment("简称");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("simple_code")
.HasComment("拼音简码");
b.HasKey("CustomerOrgId")
.HasName("pk_customer_org");
b.HasIndex(new[] { "MedicalCenterId" }, "fki_fk_customer_org_organization_units");
b.HasIndex(new[] { "ParentId", "CustomerOrgName" }, "ix_org")
.IsUnique();
b.ToTable("customer_org", null, t =>
{
t.HasComment("团检单位设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgGroup", b =>
{
b.Property<Guid>("CustomerOrgGroupId")
.HasColumnType("uuid")
.HasColumnName("customer_org_group_id");
b.Property<short>("AgeLowerLimit")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)0)
.HasColumnName("age_lower_limit")
.HasComment("适用年龄下限");
b.Property<short>("AgeUpperLimit")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)200)
.HasColumnName("age_upper_limit")
.HasComment("适用年龄上限");
b.Property<decimal>("CanAddMoney")
.ValueGeneratedOnAdd()
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("can_add_money")
.HasDefaultValueSql("0")
.HasComment("可增加单位支付金额");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("CustomerOrgGroupName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("customer_org_group_name")
.HasComment("分组名称");
b.Property<Guid>("CustomerOrgRegisterId")
.HasColumnType("uuid")
.HasColumnName("customer_org_register_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<char>("ForSexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("for_sex_id")
.HasDefaultValueSql("'A'::bpchar")
.HasComment("适用性别");
b.Property<string>("JobPost")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("job_post")
.HasComment("适用职务");
b.Property<string>("JobTitle")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("job_title")
.HasComment("适用职称");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("MaritalStatusId")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("marital_status_id")
.HasComment("适用婚姻状况");
b.Property<decimal>("Price")
.ValueGeneratedOnAdd()
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("price")
.HasDefaultValueSql("0")
.HasComment("价格");
b.Property<string>("Remark")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("remark")
.HasComment("备注");
b.HasKey("CustomerOrgGroupId")
.HasName("pk_customer_org_group");
b.HasIndex(new[] { "CustomerOrgRegisterId" }, "fki_fk_customer_org_group_register");
b.ToTable("customer_org_group", null, t =>
{
t.HasComment("团体分组主档");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgGroupDetail", b =>
{
b.Property<Guid>("CustomerOrgGroupId")
.HasColumnType("uuid")
.HasColumnName("customer_org_group_id")
.HasComment("分组编号");
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id")
.HasComment("组合项目编号");
b.Property<short>("Amount")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)1)
.HasColumnName("amount")
.HasComment("数量");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<decimal>("Price")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("price")
.HasComment("价格");
b.HasKey("CustomerOrgGroupId", "AsbitemId")
.HasName("pk_org_group_detail");
b.HasIndex(new[] { "AsbitemId" }, "IX_customer_org_group_detail_asbitem_id");
b.ToTable("customer_org_group_detail", null, t =>
{
t.HasComment("团检分组包含组合项目");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgRegister", b =>
{
b.Property<Guid>("CustomerOrgRegisterId")
.HasColumnType("uuid")
.HasColumnName("customer_org_register_id");
b.Property<DateTime>("BeginTime")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("begin_time")
.HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)")
.HasComment("开始日期");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id")
.HasComment("单位编号");
b.Property<DateTime?>("EndTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("end_time")
.HasComment("结束日期");
b.Property<char>("IsComplete")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_complete")
.HasComment("完成标志");
b.Property<char>("IsQuestion")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_question")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("是否需要填写问卷才能看报告");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<short>("MedicalTimes")
.HasColumnType("smallint")
.HasColumnName("medical_times")
.HasComment("单位体检次数");
b.Property<string>("RegisterName")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("register_name")
.HasComment("计划名称");
b.Property<string>("RegisterNo")
.HasMaxLength(12)
.HasColumnType("character varying(12)")
.HasColumnName("register_no")
.HasComment("计划号");
b.HasKey("CustomerOrgRegisterId")
.HasName("pk_customer_org_register");
b.HasIndex(new[] { "CustomerOrgId" }, "IX_customer_org_register_customer_org_id");
b.ToTable("customer_org_register", null, t =>
{
t.HasComment("团检体检登记");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.Diagnosis", b =>
{
b.Property<Guid>("DiagnosisId")
.HasColumnType("uuid")
.HasColumnName("diagnosis_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<short>("DiagnosisLevelId")
.HasColumnType("smallint")
.HasColumnName("diagnosis_level_id");
b.Property<string>("DiagnosisName")
.IsRequired()
.HasMaxLength(300)
.HasColumnType("character varying(300)")
.HasColumnName("diagnosis_name")
.HasComment("名称");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<char>("ForSexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("for_sex_id")
.HasDefaultValueSql("'A'::bpchar");
b.Property<char>("IsIll")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_ill")
.HasComment("是疾病");
b.Property<Guid>("ItemTypeId")
.HasColumnType("uuid")
.HasColumnName("item_type_id")
.HasComment("项目类别");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.HasMaxLength(300)
.HasColumnType("character varying(300)")
.HasColumnName("simple_code");
b.Property<string>("SuggestionName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("suggestion_name")
.HasComment("建议名称");
b.HasKey("DiagnosisId")
.HasName("pk_diagnosis");
b.HasIndex("ItemTypeId");
b.ToTable("diagnosis", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiagnosisLevel", b =>
{
b.Property<short>("DiagnosisLevelId")
.HasColumnType("smallint")
.HasColumnName("diagnosis_level_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DisplayName")
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("display_name");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("DiagnosisLevelId")
.HasName("pk_diagnosis_level");
b.ToTable("diagnosis_level", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRisk", b =>
{
b.Property<Guid>("DiseaseRiskId")
.HasColumnType("uuid")
.HasColumnName("disease_risk_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DiseaseRiskName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("disease_risk_name");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("DiseaseRiskId")
.HasName("pk_disease_risk");
b.HasIndex(new[] { "DiseaseRiskName" }, "ix_disease_risk")
.IsUnique();
b.ToTable("disease_risk", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRiskLevel", b =>
{
b.Property<Guid>("DiseaseRiskLevelId")
.HasColumnType("uuid")
.HasColumnName("disease_risk_level_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DiagnosisFunction")
.HasColumnType("text")
.HasColumnName("diagnosis_function");
b.Property<Guid>("DiseaseRiskId")
.HasColumnType("uuid")
.HasColumnName("disease_risk_id");
b.Property<string>("DiseaseRiskLevelName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("disease_risk_level_name");
b.Property<short?>("DiseaseRiskNormalLevelId")
.HasColumnType("smallint")
.HasColumnName("disease_risk_normal_level_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<string>("Explain")
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("explain");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.Property<string>("Suggestion")
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("suggestion");
b.HasKey("DiseaseRiskLevelId")
.HasName("pk_disease_risk_level");
b.HasIndex("DiseaseRiskId");
b.ToTable("disease_risk_level", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRiskLevelAsbitem", b =>
{
b.Property<Guid>("DiseaseRiskLevelId")
.HasColumnType("uuid")
.HasColumnName("disease_risk_level_id");
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id");
b.Property<short>("AsbitemRecommendLevelId")
.HasColumnType("smallint")
.HasColumnName("asbitem_recommend_level_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("DiseaseRiskLevelId", "AsbitemId")
.HasName("disease_risk_level_asbitem_pkey");
b.ToTable("disease_risk_level_asbitem", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRiskNormalLevel", b =>
{
b.Property<short>("DiseaseRiskNormalLevelId")
.HasColumnType("smallint")
.HasColumnName("disease_risk_normal_level_id");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DiseaseRiskNormalLevelName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("disease_risk_normal_level_name");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("DiseaseRiskNormalLevelId")
.HasName("pk_disease_risk_normal_level");
b.HasIndex(new[] { "DiseaseRiskNormalLevelName" }, "ix_disease_disease_risk_normal_level")
.IsUnique();
b.ToTable("disease_risk_normal_level", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseScreeningType", b =>
{
b.Property<Guid>("DiseaseScreeningTypeId")
.HasColumnType("uuid")
.HasColumnName("disease_screening_type_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DiseaseScreeningTypeName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("disease_screening_type_name");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("DiseaseScreeningTypeId")
.HasName("pk_disease_screening_type");
b.HasIndex(new[] { "DiseaseScreeningTypeName" }, "ix_disease_screening_type")
.IsUnique();
b.ToTable("disease_screening_type", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.ForSex", b =>
{
b.Property<char>("ForSexId")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("for_sex_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<string>("ForSexName")
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("for_sex_name");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("simple_code");
b.HasKey("ForSexId")
.HasName("pk_for_sex");
b.ToTable("for_sex", null, t =>
{
t.HasComment("适用性别设置,固定编码");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.Item", b =>
{
b.Property<Guid>("ItemId")
.HasColumnType("uuid")
.HasColumnName("item_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DefaultResult")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("default_result")
.HasComment("默认结果");
b.Property<Guid?>("DeviceTypeId")
.HasColumnType("uuid")
.HasColumnName("device_type_id");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<string>("EnglishShortName")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("english_short_name")
.HasComment("英文缩写");
b.Property<char>("IsActive")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active")
.HasDefaultValueSql("'Y'::bpchar")
.HasComment("启用");
b.Property<char>("IsCalculationItem")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_calculation_item")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("是计算项目");
b.Property<string>("ItemName")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("item_name")
.HasComment("名称");
b.Property<Guid>("ItemTypeId")
.HasColumnType("uuid")
.HasColumnName("item_type_id")
.HasComment("项目类别");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("LineModeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("line_mode_flag")
.HasDefaultValueSql("'2'::bpchar")
.HasComment("项目结果行模式");
b.Property<decimal>("Price")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("price")
.HasComment("价格");
b.Property<char>("ReferenceRangeTypeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("reference_range_type_flag")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("参考范围类别0-无参考范围,1-数字型,2-字符型,3-性激素");
b.Property<string>("SimpleCode")
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("simple_code");
b.Property<Guid?>("UnitId")
.HasColumnType("uuid")
.HasColumnName("unit_id")
.HasComment("单位");
b.HasKey("ItemId")
.HasName("pk_item");
b.HasIndex(new[] { "ItemTypeId" }, "IX_item_item_type_id");
b.HasIndex(new[] { "ItemName", "ItemTypeId" }, "ix_item")
.IsUnique();
b.ToTable("item", null, t =>
{
t.HasComment("项目设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.ItemType", b =>
{
b.Property<Guid>("ItemTypeId")
.HasColumnType("uuid")
.HasColumnName("item_type_id");
b.Property<char>("CheckTypeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("check_type_flag")
.HasDefaultValueSql("'G'::bpchar")
.HasComment("检查类别,0-普通检查,1-检验,2-影像检查");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<char>("IsWrap")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_wrap")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("项目结果是否可以换行");
b.Property<string>("ItemTypeName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("item_type_name")
.HasComment("名称");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("MedicalReportTypeId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("medical_report_type_id")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("体检报告类别");
b.Property<Guid?>("ParentId")
.HasColumnType("uuid")
.HasColumnName("parent_id")
.HasComment("父id");
b.Property<string>("PathCode")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("path_code")
.HasComment("路径编码");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code")
.HasComment("自定义简码");
b.HasKey("ItemTypeId")
.HasName("pk_item_type");
b.HasIndex(new[] { "ItemTypeName", "ParentId" }, "ix_item_type")
.IsUnique();
b.ToTable("item_type", null, t =>
{
t.HasComment("项目类别设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.Kinship", b =>
{
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int?>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<string>("KinshipCode")
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("kinship_code");
b.Property<string>("KinshipId")
.HasMaxLength(2)
.HasColumnType("character(2)")
.HasColumnName("kinship_id")
.IsFixedLength();
b.Property<string>("KinshipName")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("kinship_name");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("simple_code");
b.ToTable("kinship", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.MaritalStatus", b =>
{
b.Property<char>("MaritalStatusId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("marital_status_id")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("婚姻状况编号");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("MaritalStatusName")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("marital_status_name")
.HasComment("婚姻状况名称");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("simple_code")
.HasComment("自定义简码");
b.HasKey("MaritalStatusId")
.HasName("pk_marital_status");
b.HasIndex(new[] { "MaritalStatusName" }, "ix_marital_status")
.IsUnique();
b.ToTable("marital_status", null, t =>
{
t.HasComment("婚姻状况设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.MedicalCenter", b =>
{
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("MedicalCenterName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("medical_center_name");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("MedicalCenterId")
.HasName("pk_medical_center");
b.HasIndex(new[] { "MedicalCenterName" }, "ix_medical_center")
.IsUnique();
b.ToTable("medical_center", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.MedicalPackage", b =>
{
b.Property<Guid>("MedicalPackageId")
.HasColumnType("uuid")
.HasColumnName("medical_package_id")
.HasComment("套餐主档编号");
b.Property<short>("AgeLowerLimit")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasColumnName("age_lower_limit")
.HasDefaultValueSql("0")
.HasComment("适用年龄下限");
b.Property<short>("AgeUpperLimit")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasColumnName("age_upper_limit")
.HasDefaultValueSql("200")
.HasComment("适用年龄上限");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<char>("ForSexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("for_sex_id")
.HasDefaultValueSql("'A'::bpchar")
.HasComment("适用性别");
b.Property<char>("IsActive")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active")
.HasComment("启用标志");
b.Property<char?>("IsBasicRecommend")
.IsRequired()
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_basic_recommend")
.HasDefaultValueSql("'N'::bpchar");
b.Property<char?>("IsWebAppoint")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_web_appoint");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("MaritalStatusId")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("marital_status_id");
b.Property<string>("MedicalPackageName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("medical_package_name")
.HasComment("名称");
b.Property<decimal>("Price")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("price")
.HasComment("价格");
b.Property<string>("Remark")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("remark")
.HasComment("备注");
b.Property<string>("SimpleCode")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("simple_code");
b.HasKey("MedicalPackageId")
.HasName("pk_medical_package");
b.HasIndex(new[] { "MedicalPackageName" }, "ix_medical_package")
.IsUnique();
b.ToTable("medical_package", null, t =>
{
t.HasComment("体检套餐主档设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.MedicalPackageDetail", b =>
{
b.Property<Guid>("MedicalPackageId")
.HasColumnType("uuid")
.HasColumnName("medical_package_id")
.HasComment("套餐编号");
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id")
.HasComment("组合项目编号");
b.Property<short>("Amount")
.HasColumnType("smallint")
.HasColumnName("amount");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<decimal>("Price")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("price");
b.HasKey("MedicalPackageId", "AsbitemId")
.HasName("pk_medical_package_detail");
b.HasIndex(new[] { "AsbitemId" }, "IX_medical_package_detail_asbitem_id");
b.ToTable("medical_package_detail", null, t =>
{
t.HasComment("体检套餐包含的组合项目设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.Nation", b =>
{
b.Property<string>("NationId")
.HasMaxLength(3)
.HasColumnType("character(3)")
.HasColumnName("nation_id")
.IsFixedLength()
.HasComment("编号");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("CountryCode")
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("country_code");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("NationName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("nation_name")
.HasComment("名称");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code")
.HasComment("拼音简码");
b.HasKey("NationId")
.HasName("pk_nation");
b.HasIndex(new[] { "NationName" }, "ix_nation")
.IsUnique();
b.ToTable("nation", null, t =>
{
t.HasComment("民族设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.Patient", b =>
{
b.Property<string>("Address")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("address")
.HasComment("地址");
b.Property<DateTime?>("BirthDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("birth_date")
.HasComment("出生日期");
b.Property<Guid?>("BirthPlaceId")
.HasColumnType("uuid")
.HasColumnName("birth_place_id")
.HasComment("出生地");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("Email")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("email")
.HasComment("email");
b.Property<string>("IdNo")
.HasMaxLength(18)
.HasColumnType("character varying(18)")
.HasColumnName("id_no")
.HasComment("身份证号");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("MaritalStatusId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("marital_status_id")
.HasDefaultValueSql("'9'::bpchar")
.HasComment("婚姻状况");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id")
.HasComment("组织单位ID");
b.Property<string>("MobileTelephone")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("mobile_telephone")
.HasComment("手机号");
b.Property<string>("NationId")
.HasColumnType("text")
.HasColumnName("nation_id")
.HasComment("民族编号");
b.Property<Guid>("PatientId")
.HasColumnType("uuid")
.HasColumnName("patient_id");
b.Property<string>("PatientName")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("patient_name")
.HasComment("姓名");
b.Property<string>("PatientNo")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("patient_no")
.HasComment("档案号");
b.Property<string>("PostalCode")
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("postal_code")
.HasComment("邮政编码");
b.Property<char>("SexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("sex_id")
.HasDefaultValueSql("'U'::bpchar")
.HasComment("性别");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("simple_code")
.HasComment("简码");
b.Property<string>("Telephone")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("telephone")
.HasComment("电话");
b.HasIndex(new[] { "PatientNo" }, "IX_patient_patient_no")
.IsUnique();
b.HasIndex(new[] { "IdNo" }, "ix_patient");
b.HasIndex(new[] { "PatientName" }, "ix_patient_1");
b.ToTable("patient", null, t =>
{
t.HasComment("体检人员档案");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.PatientRegister", b =>
{
b.Property<Guid>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id")
.HasComment("登记流水号");
b.Property<short?>("Age")
.HasColumnType("smallint")
.HasColumnName("age")
.HasComment("年龄");
b.Property<DateTime?>("AuditDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("audit_date")
.HasComment("审核日期");
b.Property<Guid?>("AuditDoctorId")
.HasColumnType("uuid")
.HasColumnName("audit_doctor_id")
.HasComment("审核医生");
b.Property<DateTime?>("BirthDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("birth_date")
.HasComment("出生日期");
b.Property<char>("CompleteFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("complete_flag")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("完成标志");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("CustomerOrgGroupId")
.HasColumnType("uuid")
.HasColumnName("customer_org_group_id")
.HasComment("分组");
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id")
.HasComment("单位编号");
b.Property<Guid>("CustomerOrgRegisterId")
.HasColumnType("uuid")
.HasColumnName("customer_org_register_id")
.HasComment("客户单位登记ID");
b.Property<string>("HisPatientId")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("his_patient_id");
b.Property<char?>("InterposeMeasure")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("interpose_measure")
.HasComment("干预措施");
b.Property<char>("IsAudit")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_audit")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("审核");
b.Property<char>("IsMedicalStart")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_medical_start")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("体检开始标志");
b.Property<char>("IsVip")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_vip")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("vip客户");
b.Property<string>("JobCardNo")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("job_card_no")
.HasComment("工卡号");
b.Property<string>("JobPost")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("job_post")
.HasComment("职务");
b.Property<string>("JobTitle")
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("job_title")
.HasComment("职称");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("MaritalStatusId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("marital_status_id")
.HasDefaultValueSql("'9'::bpchar")
.HasComment("婚姻状况");
b.Property<string>("MedicalCardNo")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("medical_card_no")
.HasComment("体检卡号");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id")
.HasComment("体检中心ID");
b.Property<Guid?>("MedicalConclusionId")
.HasColumnType("uuid")
.HasColumnName("medical_conclusion_id")
.HasComment("体检结论");
b.Property<Guid?>("MedicalPackageId")
.HasColumnType("uuid")
.HasColumnName("medical_package_id")
.HasComment("套餐");
b.Property<DateTime>("MedicalStartDate")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("medical_start_date")
.HasDefaultValueSql("date(timezone('UTC-8'::text, now()))")
.HasComment("体检开始日期");
b.Property<short>("MedicalTimes")
.HasColumnType("smallint")
.HasColumnName("medical_times")
.HasComment("体检次数");
b.Property<Guid?>("MedicalTypeId")
.HasColumnType("uuid")
.HasColumnName("medical_type_id")
.HasComment("体检类别");
b.Property<Guid>("PatientId")
.HasColumnType("uuid")
.HasColumnName("patient_id")
.HasComment("档案号");
b.Property<string>("PatientName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("patient_name")
.HasComment("姓名");
b.Property<string>("PatientRegisterNo")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("patient_register_no")
.HasComment("条码号");
b.Property<Guid?>("PersonnelTypeId")
.HasColumnType("uuid")
.HasColumnName("personnel_type_id")
.HasComment("人员类别");
b.Property<string>("Photo")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("photo")
.HasComment("照片");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("remark")
.HasComment("备注");
b.Property<string>("ReportFile")
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("report_file")
.HasComment("体检报告文件");
b.Property<Guid?>("SexHormoneTermId")
.HasColumnType("uuid")
.HasColumnName("sex_hormone_term_id")
.HasComment("性激素期限");
b.Property<char>("SexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("sex_id")
.HasDefaultValueSql("'U'::bpchar")
.HasComment("性别");
b.Property<DateTime?>("SummaryDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("summary_date")
.HasComment("总检日期");
b.Property<Guid?>("SummaryDoctorId")
.HasColumnType("uuid")
.HasColumnName("summary_doctor_id")
.HasComment("总检医生");
b.Property<string>("ThirdInfo")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("third_info")
.HasComment("附加第三方信息");
b.Property<string>("ThirdRegisterId")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("third_register_id")
.HasComment("第三方ID");
b.HasKey("PatientRegisterId")
.HasName("pk_patient_register");
b.HasIndex(new[] { "MaritalStatusId" }, "IX_patient_register_marital_status_id");
b.HasIndex(new[] { "MedicalCenterId" }, "fki_fk_patient_register_ororganization_unit");
b.HasIndex(new[] { "PatientRegisterNo" }, "ix_patient_register")
.IsUnique();
b.HasIndex(new[] { "PatientId", "MedicalTimes" }, "ix_patient_register_1")
.IsUnique();
b.HasIndex(new[] { "PatientName" }, "ix_patient_register_2");
b.ToTable("patient_register", null, t =>
{
t.HasComment("体检登记主档");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.PayMode", b =>
{
b.Property<string>("PayModeId")
.HasMaxLength(4)
.HasColumnType("character varying(4)")
.HasColumnName("pay_mode_id")
.HasComment("编号,固定编码");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<char>("IsActive")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active")
.HasDefaultValueSql("'Y'::bpchar");
b.Property<string>("PayModeName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("pay_mode_name")
.HasComment("名称");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code")
.HasComment("简码");
b.HasKey("PayModeId")
.HasName("pk_pay_mode");
b.HasIndex(new[] { "PayModeName" }, "ix_payment_mode")
.IsUnique();
b.ToTable("pay_mode", null, t =>
{
t.HasComment("支付方式设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.PayOrder", b =>
{
b.Property<Guid>("PayOrderId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("pay_order_id");
b.Property<char>("ChargeFlag")
.ValueGeneratedOnAdd()
.HasColumnType("character(1)")
.HasColumnName("charge_flag")
.HasDefaultValueSql("'0'")
.HasComment("0-收费,1-退费");
b.Property<Guid?>("ChargePayOrderId")
.HasColumnType("uuid")
.HasColumnName("charge_pay_order_id")
.HasComment("收费订单ID,退费时存储对应的收费订单ID");
b.Property<decimal>("Charges")
.HasPrecision(8, 2)
.HasColumnType("numeric(8,2)")
.HasColumnName("charges")
.HasComment("金额 ,收费是正数,退费是负数");
b.Property<int>("ClientAppType")
.HasColumnType("integer")
.HasColumnName("client_app_type")
.HasComment("APP类型,0-体检电脑版,2-手机APP,3-微信小程序,4-支付宝小程序。");
b.Property<char>("CompleteFlag")
.ValueGeneratedOnAdd()
.HasColumnType("character(1)")
.HasColumnName("complete_flag")
.HasDefaultValueSql("'0'")
.HasComment("0-未完成,1-已完成,2-已完成并已经形成收据");
b.Property<string>("ConcurrencyStamp")
.IsRequired()
.HasColumnType("text")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DeviceNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("device_no")
.HasComment("设备号");
b.Property<int>("ErrorCount")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(0)
.HasColumnName("error_count")
.HasComment("生成收据错误次数");
b.Property<DateTime?>("InterfacePayDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("interface_pay_date")
.HasComment("第三方支付支付日期");
b.Property<string>("InterfacePayModeName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("interface_pay_mode_name")
.HasComment("第三方支付方式中文名,比如现金、微信,支付宝、建行卡、招商银行卡等");
b.Property<string>("InterfacePayOrderNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("interface_pay_order_no")
.HasComment("第三方支付订单号");
b.Property<string>("InterfaceRefnumber")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("interface_refnumber")
.HasComment("第三方支付参考号,根据第三方接口自定义使用方式");
b.Property<string>("InterfaceSerialModeName")
.IsRequired()
.HasColumnType("text")
.HasColumnName("interface_serial_mode_name");
b.Property<string>("InterfaceSerialNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("interface_serial_no")
.HasComment("第三方支付凭证号,根据第三方接口自定义使用方式");
b.Property<char>("IsLocked")
.HasColumnType("character(1)")
.HasColumnName("is_locked")
.HasComment("锁住,默认值N,锁住的只能人工窗口生成收费和退费信息,不能自动生成收费和退费信息,主要用于人工窗口处理异常情况");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("PatientId")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("patient_id")
.HasComment("用户id");
b.Property<string>("PayInterfaceId")
.IsRequired()
.HasColumnType("text")
.HasColumnName("pay_interface_id")
.HasComment("支付接口ID,比如01-微信官方接口,02-支付宝官方接口,03-某某公司聚合支付接口");
b.Property<string>("PayModeId")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("pay_mode_id")
.HasComment("源自字典表的设置,固定编码,比如:01-现金,02-微信,03,支付宝,04-银行卡等");
b.Property<string>("PayOrderNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("pay_order_no")
.HasComment("支付订单号(日期时间+随机数,通过雪花算法生成)");
b.Property<char>("PayOrderSourceFlag")
.HasColumnType("character(1)")
.HasColumnName("pay_order_source_flag")
.HasComment("支付源标志,0-体检");
b.Property<char>("RefundFlag")
.HasColumnType("character(1)")
.HasColumnName("refund_flag")
.HasComment("退款状态 0-未退,1-部分退,2-全退");
b.Property<int>("ScanPayType")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("scan_pay_type")
.HasDefaultValueSql("'0'")
.HasComment(" 0-主扫,1-被扫");
b.Property<string>("TargetPayOrderNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("target_pay_order_no")
.HasComment("最终支付订单号,比如第三方支付调用微信,这里指微信支付订单号");
b.HasKey("PayOrderId")
.HasName("pk_pay_order");
b.ToTable("pay_order", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.Person", b =>
{
b.Property<Guid>("PersonId")
.HasColumnType("uuid")
.HasColumnName("person_id");
b.Property<string>("Address")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("address")
.HasComment("地址");
b.Property<DateTime?>("BirthDate")
.IsRequired()
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("birth_date")
.HasComment("出生日期");
b.Property<Guid?>("BirthPlaceId")
.HasColumnType("uuid")
.HasColumnName("birth_place_id")
.HasComment("出生地");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(3)
.HasColumnType("character varying(3)")
.HasColumnName("country_code");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<decimal?>("Height")
.HasPrecision(4, 1)
.HasColumnType("numeric(4,1)")
.HasColumnName("height")
.HasComment("身高");
b.Property<string>("IdNo")
.IsRequired()
.HasMaxLength(18)
.HasColumnType("character varying(18)")
.HasColumnName("id_no")
.HasComment("身份证号");
b.Property<string>("IdTypeId")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("character(2)")
.HasColumnName("id_type_id")
.IsFixedLength();
b.Property<char?>("IsAllowBind")
.IsRequired()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_allow_bind");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char>("MaritalStatusId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("marital_status_id")
.HasDefaultValueSql("'9'::bpchar")
.HasComment("婚姻状况");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id")
.HasComment("组织单位ID");
b.Property<string>("NationId")
.IsRequired()
.HasMaxLength(3)
.HasColumnType("character varying(3)")
.HasColumnName("nation_id")
.HasComment("民族编号");
b.Property<string>("PersonNo")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("person_no")
.HasComment("档案号");
b.Property<string>("PostalCode")
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("postal_code")
.HasComment("邮政编码");
b.Property<char>("PregnantFlag")
.ValueGeneratedOnAdd()
.HasColumnType("character(1)")
.HasColumnName("pregnant_flag")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("备孕标志");
b.Property<char>("SexId")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("sex_id")
.HasDefaultValueSql("'U'::bpchar")
.HasComment("性别");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("simple_code")
.HasComment("简码");
b.Property<string>("WechatOpenId")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("wechat_open_id");
b.Property<decimal?>("Weight")
.HasPrecision(5, 2)
.HasColumnType("numeric(5,2)")
.HasColumnName("weight")
.HasComment("体重");
b.HasKey("PersonId")
.HasName("pk_patient");
b.HasIndex(new[] { "PersonNo" }, "IX_person_person_no")
.IsUnique();
b.HasIndex(new[] { "IdNo" }, "ix_person_id_no");
b.ToTable("person", null, t =>
{
t.HasComment("体检人员档案");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.PersonKinship", b =>
{
b.Property<Guid>("PersonId")
.HasColumnType("uuid")
.HasColumnName("person_id");
b.Property<Guid>("ParentPersonId")
.HasColumnType("uuid")
.HasColumnName("parent_person_id");
b.Property<string>("KinshipId")
.HasMaxLength(2)
.HasColumnType("character(2)")
.HasColumnName("kinship_id")
.IsFixedLength();
b.HasKey("PersonId", "ParentPersonId", "KinshipId")
.HasName("person_kinship_pkey");
b.ToTable("person_kinship", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.PrimarykeyBuilder", b =>
{
b.Property<string>("PrimarykeyBuilderId")
.HasColumnType("text")
.HasColumnName("primarykey_builder_id")
.HasComment("编号");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("DateString")
.HasMaxLength(8)
.HasColumnType("character varying(8)")
.HasColumnName("date_string")
.HasComment("日期");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SerialNo")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("serial_no")
.HasComment("序列号");
b.HasKey("PrimarykeyBuilderId")
.HasName("pk_primarykey_builder");
b.ToTable("primarykey_builder", null, t =>
{
t.HasComment("主键产生器");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.Question", b =>
{
b.Property<Guid>("QuestionId")
.HasColumnType("uuid")
.HasColumnName("question_id");
b.Property<char?>("AnswerType")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("answer_type");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<char?>("IsActive")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active");
b.Property<char>("IsShow")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_show")
.HasDefaultValueSql("'Y'::bpchar");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid?>("ParentId")
.HasColumnType("uuid")
.HasColumnName("parent_id");
b.Property<string>("PathCode")
.HasMaxLength(60)
.HasColumnType("character varying(60)")
.HasColumnName("path_code");
b.Property<string>("QuestionName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("question_name");
b.Property<string>("QuestionSubjectTypeId")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("question_subject_type_id");
b.Property<string>("QuestionTypeId")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("question_type_id");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("simple_code");
b.HasKey("QuestionId")
.HasName("pk_question");
b.HasIndex(new[] { "QuestionName" }, "ix_question")
.IsUnique();
b.ToTable("question", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionAnswer", b =>
{
b.Property<Guid>("QuestionAnswerId")
.HasColumnType("uuid")
.HasColumnName("question_answer_id");
b.Property<string>("Aliases")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("aliases");
b.Property<char?>("AnswerResultType")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("answer_result_type");
b.Property<string>("ChildAnswerTitle")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("child_answer_title");
b.Property<char?>("ChildAnswerType")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("child_answer_type");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<string>("HealthGuidance")
.HasMaxLength(300)
.HasColumnType("character varying(300)")
.HasColumnName("health_guidance");
b.Property<char>("IsNone")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_none");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Overview")
.HasMaxLength(300)
.HasColumnType("character varying(300)")
.HasColumnName("overview");
b.Property<Guid?>("ParentId")
.HasColumnType("uuid")
.HasColumnName("parent_id");
b.Property<string>("PathCode")
.HasMaxLength(60)
.HasColumnType("character varying(60)")
.HasColumnName("path_code");
b.Property<string>("QuestionAnswerName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("question_answer_name");
b.Property<Guid>("QuestionId")
.HasColumnType("uuid")
.HasColumnName("question_id");
b.Property<string>("Reason")
.HasMaxLength(300)
.HasColumnType("character varying(300)")
.HasColumnName("reason");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("simple_code");
b.HasKey("QuestionAnswerId")
.HasName("pk_question_answer");
b.ToTable("question_answer", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionAnswerAsbitem", b =>
{
b.Property<Guid>("QuestionAnswerId")
.HasColumnType("uuid")
.HasColumnName("question_answer_id");
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id");
b.Property<short>("AsbitemRecommendLevelId")
.HasColumnType("smallint")
.HasColumnName("asbitem_recommend_level_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("QuestionAnswerId", "AsbitemId", "AsbitemRecommendLevelId")
.HasName("question_answer_asbitem_pkey");
b.ToTable("question_answer_asbitem", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionAnswerChild", b =>
{
b.Property<Guid>("QuestionAnswerChildId")
.HasColumnType("uuid")
.HasColumnName("question_answer_child_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("QuestionAnswerChildName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("question_answer_child_name");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("QuestionAnswerChildId")
.HasName("pk_question_answer_child");
b.HasIndex(new[] { "QuestionAnswerChildName" }, "ix_question_answer_child")
.IsUnique();
b.ToTable("question_answer_child", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionAnswerRiskLevel", b =>
{
b.Property<Guid>("DiseaseRiskLevelId")
.HasColumnType("uuid")
.HasColumnName("disease_risk_level_id");
b.Property<Guid>("QuestionAnswerId")
.HasColumnType("uuid")
.HasColumnName("question_answer_id");
b.Property<string>("ConcurrencyStamp")
.HasColumnType("text")
.HasColumnName("concurrency_stamp");
b.HasKey("DiseaseRiskLevelId", "QuestionAnswerId")
.HasName("pk_question_answer_risk_level");
b.ToTable("question_answer_risk_level", null, t =>
{
t.HasComment("答案对应的疾病风险级别");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegister", b =>
{
b.Property<Guid>("QuestionRegisterId")
.HasColumnType("uuid")
.HasColumnName("question_register_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("PersonId")
.HasColumnType("uuid")
.HasColumnName("person_id");
b.HasKey("QuestionRegisterId")
.HasName("pk_question_register");
b.HasIndex(new[] { "PersonId" }, "IX_question_register_person_id");
b.ToTable("question_register", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterAnswer", b =>
{
b.Property<Guid>("QuestionRegisterAnswerId")
.HasColumnType("uuid")
.HasColumnName("question_register_answer_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("Content")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("content");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("QuestionAnswerId")
.HasColumnType("uuid")
.HasColumnName("question_answer_id");
b.Property<Guid>("QuestionRegisterItemId")
.HasColumnType("uuid")
.HasColumnName("question_register_item_id");
b.HasKey("QuestionRegisterAnswerId")
.HasName("question_register_answer_pkey");
b.HasIndex(new[] { "QuestionAnswerId" }, "IX_question_register_answer_question_answer_id");
b.HasIndex(new[] { "QuestionRegisterItemId" }, "IX_question_register_answer_question_register_item_id");
b.ToTable("question_register_answer", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterAnswerChild", b =>
{
b.Property<Guid>("QuestionRegisterAnswerChildId")
.HasColumnType("uuid")
.HasColumnName("question_register_answer_child_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("Content")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("content");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("QuestionRegisterAnswerId")
.HasColumnType("uuid")
.HasColumnName("question_register_answer_id");
b.HasKey("QuestionRegisterAnswerChildId")
.HasName("pk_question_register_answer_child");
b.HasIndex("QuestionRegisterAnswerId");
b.ToTable("question_register_answer_child", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterItem", b =>
{
b.Property<Guid>("QuestionRegisterItemId")
.HasColumnType("uuid")
.HasColumnName("question_register_item_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("QuestionId")
.HasColumnType("uuid")
.HasColumnName("question_id");
b.Property<Guid>("QuestionRegisterId")
.HasColumnType("uuid")
.HasColumnName("question_register_id");
b.HasKey("QuestionRegisterItemId")
.HasName("pk_question_register_item");
b.HasIndex(new[] { "QuestionId" }, "IX_question_register_item_question_id");
b.HasIndex(new[] { "QuestionRegisterId" }, "IX_question_register_item_question_register_id");
b.ToTable("question_register_item", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionSubjectType", b =>
{
b.Property<string>("QuestionSubjectTypeId")
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("question_subject_type_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("QuestionSubjectTypeName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("question_subject_type_name");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("QuestionSubjectTypeId")
.HasName("pk_question_subject_type");
b.HasIndex(new[] { "QuestionSubjectTypeName" }, "ix_question_subject_type")
.IsUnique();
b.ToTable("question_subject_type", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionType", b =>
{
b.Property<string>("QuestionTypeId")
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("question_type_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("QuestionTypeName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("question_type_name");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("simple_code");
b.HasKey("QuestionTypeId")
.HasName("pk_question_type");
b.HasIndex(new[] { "QuestionTypeName" }, "ix_question_type")
.IsUnique();
b.ToTable("question_type", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheck", b =>
{
b.Property<Guid>("RegisterCheckId")
.HasColumnType("uuid")
.HasColumnName("register_check_id");
b.Property<DateTime?>("AuditTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("audit_time")
.HasComment("审核时间");
b.Property<Guid?>("AuditorUserId")
.HasColumnType("uuid")
.HasColumnName("auditor_user_id")
.HasComment("审核医生ID");
b.Property<DateTime?>("CheckDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("check_date")
.HasComment("检查日期");
b.Property<string>("CheckDoctorId")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("check_doctor_id")
.HasComment("检查医生ID");
b.Property<string>("CheckRequestNo")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("check_request_no")
.HasComment("检查单号");
b.Property<char>("CompleteFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("complete_flag")
.HasDefaultValueSql("0")
.HasComment("完成标志");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("CriticalValue")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("critical_value")
.HasComment("危急值");
b.Property<DateTime?>("CriticalValueCreateDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("critical_value_create_date")
.HasComment("危急值创建日期");
b.Property<char?>("CriticalValueFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("critical_value_flag")
.HasDefaultValueSql("0")
.HasComment("危急值标志");
b.Property<string>("CriticalValueProcessContent")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("critical_value_process_content")
.HasComment("危急值处理内容");
b.Property<DateTime?>("CriticalValueProcessDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("critical_value_process_date")
.HasComment("危急值处理日期");
b.Property<string>("CriticalValueProcessDoctor")
.HasMaxLength(16)
.HasColumnType("character varying(16)")
.HasColumnName("critical_value_process_doctor")
.HasComment("危急值处理医生");
b.Property<char?>("CriticalValueProcessFlag")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("critical_value_process_flag")
.HasComment("危急值处理标志");
b.Property<Guid?>("ExecOrganizationUnitId")
.HasColumnType("uuid")
.HasColumnName("exec_organization_unit_id");
b.Property<char>("IsAudit")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_audit")
.HasComment("是审核");
b.Property<char>("IsPacsCheck")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_pacs_check")
.HasDefaultValueSql("'N'")
.HasComment("是否pacs检查 dicom上传为准");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<DateTime?>("PacsCheckDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("pacs_check_date");
b.Property<DateTime?>("PacsUploadDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("pacs_upload_date");
b.Property<Guid>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id");
b.Property<string>("ThirdInfo")
.HasMaxLength(80)
.HasColumnType("character varying(80)")
.HasColumnName("third_info")
.HasComment("第三方信息");
b.HasKey("RegisterCheckId")
.HasName("pk_register_check");
b.ToTable("register_check", null, t =>
{
t.HasComment("登记检查单");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckAsbitem", b =>
{
b.Property<Guid>("RegisterCheckAsbitemId")
.HasColumnType("uuid")
.HasColumnName("register_check_asbitem_id")
.HasComment("主键");
b.Property<short>("Amount")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)1)
.HasColumnName("amount")
.HasComment("数量");
b.Property<Guid>("AsbitemId")
.HasColumnType("uuid")
.HasColumnName("asbitem_id")
.HasComment("组合项目");
b.Property<decimal>("ChargePrice")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("charge_price")
.HasComment("实收价格");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<char>("IsCharge")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_charge")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("是否已收费");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id")
.HasComment("登记流水号");
b.Property<char>("PayTypeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("pay_type_flag")
.HasDefaultValueSql("0")
.HasComment("支付方式,比如是自费、免费、单位支付");
b.Property<Guid>("RegisterCheckId")
.HasColumnType("uuid")
.HasColumnName("register_check_id");
b.Property<decimal>("StandardPrice")
.HasPrecision(10, 2)
.HasColumnType("numeric(10,2)")
.HasColumnName("standard_price")
.HasComment("标准价格");
b.HasKey("RegisterCheckAsbitemId")
.HasName("pk_register_check_asbitem");
b.HasIndex(new[] { "AsbitemId" }, "IX_register_check_asbitem_asbitem_id");
b.HasIndex(new[] { "RegisterCheckId" }, "IX_register_check_asbitem_register_check_id");
b.HasIndex(new[] { "PatientRegisterId", "AsbitemId" }, "ix_register_asbitem")
.IsUnique();
b.ToTable("register_check_asbitem", null, t =>
{
t.HasComment("检查组合项目记录");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckItem", b =>
{
b.Property<Guid>("RegisterCheckId")
.HasColumnType("uuid")
.HasColumnName("register_check_id");
b.Property<Guid>("ItemId")
.HasColumnType("uuid")
.HasColumnName("item_id")
.HasComment("项目编号");
b.Property<DateTime?>("CheckDate")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("check_date")
.HasComment("检查日期");
b.Property<string>("CheckDoctorName")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("check_doctor_name")
.HasComment("检查医生");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("CriticalRangeValue")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("critical_range_value")
.HasComment("危急值范围");
b.Property<string>("CriticalValue")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("critical_value")
.HasComment("危急值");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("ReferenceRangeValue")
.ValueGeneratedOnAdd()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("reference_range_value")
.HasDefaultValueSql("''::character varying")
.HasComment("参考范围");
b.Property<string>("Result")
.HasMaxLength(1000)
.HasColumnType("character varying(1000)")
.HasColumnName("result")
.HasComment("结果");
b.Property<string>("ResultStatusId")
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("result_status_id")
.HasComment("报告单提示");
b.Property<string>("Unit")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("unit")
.HasComment("单位");
b.HasKey("RegisterCheckId", "ItemId")
.HasName("pk_register_item_1");
b.HasIndex(new[] { "ItemId" }, "IX_register_check_item_item_id");
b.HasIndex(new[] { "ResultStatusId" }, "IX_register_check_item_result_status_id");
b.ToTable("register_check_item", null, t =>
{
t.HasComment("检查明细项目记录");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckPicture", b =>
{
b.Property<Guid>("RegisterCheckPictureId")
.HasColumnType("uuid")
.HasColumnName("register_check_picture_id")
.HasComment("检查图片编号");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(1)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<char>("IsPrint")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_print")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("打印标志");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<char?>("PictureFileType")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("picture_file_type");
b.Property<string>("PictureFilename")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("picture_filename")
.HasComment("图片名");
b.Property<Guid>("RegisterCheckId")
.HasColumnType("uuid")
.HasColumnName("register_check_id")
.HasComment("登记流水号");
b.HasKey("RegisterCheckPictureId")
.HasName("pk_register_check_picture");
b.HasIndex(new[] { "RegisterCheckId", "PictureFilename" }, "ix_check_picture")
.IsUnique();
b.ToTable("register_check_picture", null, t =>
{
t.HasComment("体检登记组合项目图片");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckSuggestion", b =>
{
b.Property<Guid>("RegisterCheckSuggestionId")
.HasColumnType("uuid")
.HasColumnName("register_check_suggestion_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("RegisterCheckId")
.HasColumnType("uuid")
.HasColumnName("register_check_id")
.HasComment("登记检查ID");
b.Property<string>("Suggestion")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("suggestion")
.HasComment("建议");
b.HasKey("RegisterCheckSuggestionId")
.HasName("pk_register_check_suggestion");
b.HasIndex(new[] { "RegisterCheckId" }, "IX_register_check_suggestion_register_check_id");
b.ToTable("register_check_suggestion", null, t =>
{
t.HasComment("登记检查建议");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckSummary", b =>
{
b.Property<Guid>("RegisterCheckSummaryId")
.HasColumnType("uuid")
.HasColumnName("register_check_summary_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("顺序");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("RegisterCheckId")
.HasColumnType("uuid")
.HasColumnName("register_check_id")
.HasComment("登记检查ID");
b.Property<string>("Summary")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)")
.HasColumnName("summary")
.HasComment("综述");
b.Property<char>("SummaryFlag")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("summary_flag")
.HasComment("综述标志");
b.HasKey("RegisterCheckSummaryId")
.HasName("pk_register_check_summary");
b.HasIndex(new[] { "RegisterCheckId" }, "IX_register_check_summary_register_check_id");
b.ToTable("register_check_summary", null, t =>
{
t.HasComment("登记检查综述");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.ResultStatus", b =>
{
b.Property<string>("ResultStatusId")
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("result_status_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DataInputBackgroundColor")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(16777215)
.HasColumnName("data_input_background_color")
.HasComment("数据录入报告单颜色");
b.Property<int>("DataInputFontColor")
.HasColumnType("integer")
.HasColumnName("data_input_font_color")
.HasComment("数据录入字体颜色");
b.Property<string>("DataInputPrompt")
.HasMaxLength(8)
.HasColumnType("character varying(8)")
.HasColumnName("data_input_prompt")
.HasComment("数据录入提示");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<int>("ReportBackgroundColor")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(16777215)
.HasColumnName("report_background_color")
.HasComment("报告单背景颜色");
b.Property<int>("ReportFontColor")
.HasColumnType("integer")
.HasColumnName("report_font_color")
.HasComment("报告单字体颜色");
b.Property<string>("ReportPrompt")
.HasMaxLength(8)
.HasColumnType("character varying(8)")
.HasColumnName("report_prompt")
.HasComment("报告单提示");
b.Property<string>("ResultStatusName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("result_status_name")
.HasComment("名称");
b.HasKey("ResultStatusId")
.HasName("pk_result_status");
b.HasIndex(new[] { "ResultStatusName" }, "ix_result_status")
.IsUnique();
b.ToTable("result_status", null, t =>
{
t.HasComment("结果状态设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SettleAccount", b =>
{
b.Property<Guid>("SettleAccountId")
.HasColumnType("uuid")
.HasColumnName("settle_account_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<char>("IsComplete")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_complete")
.HasComment("是完成");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.HasKey("SettleAccountId")
.HasName("pk_settle_account");
b.ToTable("settle_account", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.Sex", b =>
{
b.Property<char>("SexId")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("sex_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SexName")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("sex_name")
.HasComment("名称");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)")
.HasColumnName("simple_code")
.HasComment("简码");
b.HasKey("SexId")
.HasName("pk_sex");
b.ToTable("sex", null, t =>
{
t.HasComment("性别设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumDiagnosis", b =>
{
b.Property<Guid>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id")
.HasComment("病人登记ID");
b.Property<Guid>("DiagnosisId")
.HasColumnType("uuid")
.HasColumnName("diagnosis_id")
.HasComment("诊断ID");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<Guid>("SumSuggestionHeaderId")
.HasColumnType("uuid")
.HasColumnName("sum_suggestion_header_id")
.HasComment("建议头ID");
b.HasKey("PatientRegisterId", "DiagnosisId")
.HasName("pk_summary_diagnosis");
b.HasIndex(new[] { "DiagnosisId" }, "IX_sum_diagnosis_diagnosis_id");
b.ToTable("sum_diagnosis", null, t =>
{
t.HasComment("总检诊断");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSuggestionContent", b =>
{
b.Property<Guid>("SumSuggestionContentId")
.HasColumnType("uuid")
.HasColumnName("sum_suggestion_content_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SuggestionContent")
.IsRequired()
.HasMaxLength(10000)
.HasColumnType("character varying(10000)")
.HasColumnName("suggestion_content")
.HasComment("建议内容");
b.Property<string>("SuggestionType")
.IsRequired()
.HasMaxLength(1)
.HasColumnType("character varying(1)")
.HasColumnName("suggestion_type")
.HasComment("建议类型");
b.Property<Guid>("SumSuggestionHeaderId")
.HasColumnType("uuid")
.HasColumnName("sum_suggestion_header_id")
.HasComment("建议头ID");
b.HasKey("SumSuggestionContentId")
.HasName("pk_sum_suggestion_content");
b.HasIndex(new[] { "SumSuggestionHeaderId" }, "IX_sum_suggestion_content_sum_suggestion_header_id");
b.ToTable("sum_suggestion_content", null, t =>
{
t.HasComment("总检建议内容");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSuggestionHeader", b =>
{
b.Property<Guid>("SumSuggestionHeaderId")
.HasColumnType("uuid")
.HasColumnName("sum_suggestion_header_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id")
.HasComment("病人登记ID");
b.Property<char>("SuggestionFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("suggestion_flag")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("建议标志");
b.Property<string>("SuggestionTitle")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("suggestion_title")
.HasComment("建议标题");
b.HasKey("SumSuggestionHeaderId")
.HasName("pk_sum_suggestion_header");
b.HasIndex(new[] { "PatientRegisterId", "SuggestionTitle" }, "ix_sum_suggestion_title")
.IsUnique();
b.ToTable("sum_suggestion_header", null, t =>
{
t.HasComment("总检建议头");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSummaryContent", b =>
{
b.Property<Guid>("SumSummaryContentId")
.HasColumnType("uuid")
.HasColumnName("sum_summary_content_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(0)
.HasColumnName("display_order");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("SumSummaryHeaderId")
.HasColumnType("uuid")
.HasColumnName("sum_summary_header_id")
.HasComment("建议头ID");
b.Property<string>("SummaryContent")
.IsRequired()
.HasMaxLength(3000)
.HasColumnType("character varying(3000)")
.HasColumnName("summary_content")
.HasComment("建议内容");
b.HasKey("SumSummaryContentId")
.HasName("pk_sum_summary_content");
b.HasIndex(new[] { "SumSummaryHeaderId" }, "IX_sum_summary_content_sum_summary_header_id");
b.ToTable("sum_summary_content", null, t =>
{
t.HasComment("总检综述内容");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSummaryHeader", b =>
{
b.Property<Guid>("SumSummaryHeaderId")
.HasColumnType("uuid")
.HasColumnName("sum_summary_header_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id")
.HasComment("病人登记ID");
b.Property<char>("SummaryFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("summary_flag")
.HasDefaultValueSql("'0'::bpchar")
.HasComment("综述标志");
b.Property<string>("SummaryTitle")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("summary_title")
.HasComment("综述标题");
b.HasKey("SumSummaryHeaderId")
.HasName("pk_sum_summary_header");
b.HasIndex(new[] { "PatientRegisterId" }, "IX_sum_summary_header_patient_register_id");
b.ToTable("sum_summary_header", null, t =>
{
t.HasComment("总检综述头");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParm", b =>
{
b.Property<string>("SysParmId")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("sys_parm_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<char>("IsPublic")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_public")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("是否支持设置按体检中心设置参数值(Y 直接取公共参数,无法设置 N.可以设置多个参数)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("character varying(500)")
.HasColumnName("remark")
.HasComment("备注");
b.Property<string>("SimpleCode")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("simple_code");
b.Property<string>("SysParmName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("sys_parm_name")
.HasComment("参数名");
b.Property<string>("SysParmTypeId")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("sys_parm_type_id")
.HasComment("参数类别ID");
b.Property<char>("ValueType")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("value_type")
.HasComment("结果类别");
b.HasKey("SysParmId")
.HasName("pk_sys_parm");
b.HasIndex(new[] { "SysParmTypeId" }, "IX_sys_parm_sys_parm_type_id");
b.ToTable("sys_parm", null, t =>
{
t.HasComment("系统参数设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParmType", b =>
{
b.Property<string>("SysParmTypeId")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("sys_parm_type_id");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(999999)
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("ParentId")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("parent_id")
.HasComment("父ID");
b.Property<string>("SimpleCode")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("simple_code")
.HasComment("简码");
b.Property<string>("SysParmTypeName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("sys_parm_type_name")
.HasComment("名称");
b.HasKey("SysParmTypeId")
.HasName("pk_sys_parm_type");
b.ToTable("sys_parm_type", null, t =>
{
t.HasComment("系统参数类别设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParmValue", b =>
{
b.Property<string>("SysParmId")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("sys_parm_id")
.HasComment("参数ID");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id")
.HasComment("体检中心ID");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("ParmValue")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("parm_value")
.HasComment("参数值");
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("character varying(500)")
.HasColumnName("remark")
.HasComment("备注");
b.HasKey("SysParmId", "MedicalCenterId")
.HasName("pk_sys_parm_value");
b.ToTable("sys_parm_value", null, t =>
{
t.HasComment("系统参数值设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParmValueOption", b =>
{
b.Property<string>("SysParmId")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("sys_parm_id");
b.Property<string>("ValueOption")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("value_option")
.HasComment("可选项");
b.Property<string>("ConcurrencyStamp")
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<int>("DisplayOrder")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(1)
.HasColumnName("display_order");
b.Property<string>("ValueOptionName")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("value_option_name")
.HasComment("可选项名");
b.HasKey("SysParmId", "ValueOption")
.HasName("pk_sys_parm_value_option");
b.ToTable("sys_parm_value_option", null, t =>
{
t.HasComment("系统参数可选值设置");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.ThirdInterface", b =>
{
b.Property<Guid>("ThirdInterfaceId")
.HasColumnType("uuid")
.HasColumnName("third_interface_id")
.IsFixedLength()
.HasComment("编号");
b.Property<string>("ConcurrencyStamp")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order")
.HasComment("显示顺序");
b.Property<char>("IsActive")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active")
.HasComment("是否启用");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid>("MedicalCenterId")
.HasColumnType("uuid")
.HasColumnName("medical_center_id");
b.Property<string>("ParmValue")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)")
.HasColumnName("parm_value");
b.Property<string>("ThirdInterfaceName")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("third_interface_name")
.HasComment("名称");
b.Property<string>("ThirdInterfaceType")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("character varying(2)")
.HasColumnName("third_interface_type")
.HasComment("接口类型");
b.HasKey("ThirdInterfaceId")
.HasName("pk_third_interface");
b.ToTable("third_interface", null, t =>
{
t.HasComment("第三方接口表");
});
});
modelBuilder.Entity("Shentun.WebPeis.Models.WeChatOrder", b =>
{
b.Property<Guid>("WeChatOrderId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("we_chat_order_id");
b.Property<string>("Appid")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("appid")
.HasComment("appid");
b.Property<Guid>("AppointPatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("appoint_patient_register_id")
.HasComment("预约id");
b.Property<string>("ConcurrencyStamp")
.IsRequired()
.HasColumnType("text")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Mchid")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("mchid")
.HasComment("商户号");
b.Property<string>("Openid")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("openid")
.HasComment("Openid");
b.Property<int>("OrderMoney")
.HasColumnType("integer")
.HasColumnName("order_money")
.HasComment("订单金额");
b.Property<string>("OutTradeNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("out_trade_no")
.HasComment("订单号");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("status")
.HasComment("交易状态");
b.Property<string>("TransactionId")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("transaction_id")
.HasComment("微信系统生成的订单号");
b.HasKey("WeChatOrderId")
.HasName("pk_wechat_order");
b.HasIndex(new[] { "OutTradeNo" }, "ix_wechat_order_out_trade_no")
.IsUnique();
b.ToTable("wechat_order", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.WeChatOrderRefund", b =>
{
b.Property<Guid>("WeChatOrderRefundId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("we_chat_order_refund_id");
b.Property<string>("Channel")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("channel")
.HasComment("退款渠道");
b.Property<string>("ConcurrencyStamp")
.IsRequired()
.HasColumnType("text")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("OutRefundNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("out_refund_no")
.HasComment("退款申请单号");
b.Property<string>("RefundId")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("refund_id")
.HasComment("微信系统生成的退款号");
b.Property<int>("RefundMoney")
.HasColumnType("integer")
.HasColumnName("refund_money")
.HasComment("退款金额(分)");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("status")
.HasComment("交易状态");
b.Property<DateTime?>("SuccessTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("success_time")
.HasComment("完成时间");
b.Property<string>("UserReceivedAccount")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("user_received_account")
.HasComment("退款入账账户");
b.Property<Guid>("WeChatOrderId")
.HasColumnType("uuid")
.HasColumnName("we_chat_order_id")
.HasComment("微信订单表Id");
b.HasKey("WeChatOrderRefundId")
.HasName("pk_wechat_order_refund");
b.HasIndex(new[] { "OutRefundNo" }, "ix_wechat_order_refund_out_refund_no")
.IsUnique();
b.ToTable("wechat_order_refund", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ApplicationName")
.HasMaxLength(96)
.HasColumnType("character varying(96)")
.HasColumnName("application_name");
b.Property<string>("BrowserInfo")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("browser_info");
b.Property<string>("ClientId")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("client_id");
b.Property<string>("ClientIpAddress")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("client_ip_address");
b.Property<string>("ClientName")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("client_name");
b.Property<string>("Comments")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("comments");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("CorrelationId")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("correlation_id");
b.Property<string>("Exceptions")
.HasColumnType("text")
.HasColumnName("exceptions");
b.Property<int>("ExecutionDuration")
.HasColumnType("integer")
.HasColumnName("execution_duration");
b.Property<DateTime>("ExecutionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("execution_time");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<string>("HttpMethod")
.HasMaxLength(16)
.HasColumnType("character varying(16)")
.HasColumnName("http_method");
b.Property<int?>("HttpStatusCode")
.HasColumnType("integer")
.HasColumnName("http_status_code");
b.Property<Guid?>("ImpersonatorTenantId")
.HasColumnType("uuid")
.HasColumnName("impersonator_tenant_id");
b.Property<string>("ImpersonatorTenantName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("impersonator_tenant_name");
b.Property<Guid?>("ImpersonatorUserId")
.HasColumnType("uuid")
.HasColumnName("impersonator_user_id");
b.Property<string>("ImpersonatorUserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("impersonator_user_name");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.Property<string>("TenantName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("tenant_name");
b.Property<string>("Url")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("url");
b.Property<Guid?>("UserId")
.HasColumnType("uuid")
.HasColumnName("user_id");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("user_name");
b.HasKey("Id")
.HasName("pk_abp_audit_logs");
b.HasIndex("TenantId", "ExecutionTime");
b.HasIndex("TenantId", "UserId", "ExecutionTime");
b.ToTable("abp_audit_logs", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<Guid>("AuditLogId")
.HasColumnType("uuid")
.HasColumnName("audit_log_id");
b.Property<int>("ExecutionDuration")
.HasColumnType("integer")
.HasColumnName("execution_duration");
b.Property<DateTime>("ExecutionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("execution_time");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<string>("MethodName")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("method_name");
b.Property<string>("Parameters")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)")
.HasColumnName("parameters");
b.Property<string>("ServiceName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("service_name");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_audit_log_actions");
b.HasIndex("AuditLogId");
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
b.ToTable("abp_audit_log_actions", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<Guid>("AuditLogId")
.HasColumnType("uuid")
.HasColumnName("audit_log_id");
b.Property<DateTime>("ChangeTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("change_time");
b.Property<byte>("ChangeType")
.HasColumnType("smallint")
.HasColumnName("change_type");
b.Property<string>("EntityId")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("entity_id");
b.Property<Guid?>("EntityTenantId")
.HasColumnType("uuid")
.HasColumnName("entity_tenant_id");
b.Property<string>("EntityTypeFullName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("entity_type_full_name");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_entity_changes");
b.HasIndex("AuditLogId");
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
b.ToTable("abp_entity_changes", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<Guid>("EntityChangeId")
.HasColumnType("uuid")
.HasColumnName("entity_change_id");
b.Property<string>("NewValue")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("new_value");
b.Property<string>("OriginalValue")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("original_value");
b.Property<string>("PropertyName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("property_name");
b.Property<string>("PropertyTypeFullName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("property_type_full_name");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_entity_property_changes");
b.HasIndex("EntityChangeId");
b.ToTable("abp_entity_property_changes", (string)null);
});
modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsAbandoned")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_abandoned");
b.Property<string>("JobArgs")
.IsRequired()
.HasMaxLength(1048576)
.HasColumnType("character varying(1048576)")
.HasColumnName("job_args");
b.Property<string>("JobName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("job_name");
b.Property<DateTime?>("LastTryTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_try_time");
b.Property<DateTime>("NextTryTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("next_try_time");
b.Property<byte>("Priority")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((byte)15)
.HasColumnName("priority");
b.Property<short>("TryCount")
.ValueGeneratedOnAdd()
.HasColumnType("smallint")
.HasDefaultValue((short)0)
.HasColumnName("try_count");
b.HasKey("Id")
.HasName("pk_abp_background_jobs");
b.HasIndex("IsAbandoned", "NextTryTime");
b.ToTable("abp_background_jobs", (string)null);
});
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureDefinitionRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("AllowedProviders")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("allowed_providers");
b.Property<string>("DefaultValue")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("default_value");
b.Property<string>("Description")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("description");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("display_name");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<string>("GroupName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("group_name");
b.Property<bool>("IsAvailableToHost")
.HasColumnType("boolean")
.HasColumnName("is_available_to_host");
b.Property<bool>("IsVisibleToClients")
.HasColumnType("boolean")
.HasColumnName("is_visible_to_clients");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.Property<string>("ParentName")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("parent_name");
b.Property<string>("ValueType")
.HasMaxLength(2048)
.HasColumnType("character varying(2048)")
.HasColumnName("value_type");
b.HasKey("Id")
.HasName("pk_abp_features");
b.HasIndex("GroupName");
b.HasIndex("Name")
.IsUnique();
b.ToTable("abp_features", (string)null);
});
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureGroupDefinitionRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("display_name");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.HasKey("Id")
.HasName("pk_abp_feature_groups");
b.HasIndex("Name")
.IsUnique();
b.ToTable("abp_feature_groups", (string)null);
});
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.Property<string>("ProviderKey")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("provider_key");
b.Property<string>("ProviderName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("provider_name");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("value");
b.HasKey("Id")
.HasName("pk_abp_feature_values");
b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("abp_feature_values", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("Description")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("description");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsStatic")
.HasColumnType("boolean")
.HasColumnName("is_static");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("name");
b.Property<string>("Regex")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("regex");
b.Property<string>("RegexDescription")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("regex_description");
b.Property<bool>("Required")
.HasColumnType("boolean")
.HasColumnName("required");
b.Property<int>("ValueType")
.HasColumnType("integer")
.HasColumnName("value_type");
b.HasKey("Id")
.HasName("pk_abp_claim_types");
b.ToTable("abp_claim_types", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<Guid?>("SourceTenantId")
.HasColumnType("uuid")
.HasColumnName("source_tenant_id");
b.Property<Guid>("SourceUserId")
.HasColumnType("uuid")
.HasColumnName("source_user_id");
b.Property<Guid?>("TargetTenantId")
.HasColumnType("uuid")
.HasColumnName("target_tenant_id");
b.Property<Guid>("TargetUserId")
.HasColumnType("uuid")
.HasColumnName("target_user_id");
b.HasKey("Id")
.HasName("pk_abp_link_users");
b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId")
.IsUnique();
b.ToTable("abp_link_users", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<int>("EntityVersion")
.HasColumnType("integer")
.HasColumnName("entity_version");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsDefault")
.HasColumnType("boolean")
.HasColumnName("is_default");
b.Property<bool>("IsPublic")
.HasColumnType("boolean")
.HasColumnName("is_public");
b.Property<bool>("IsStatic")
.HasColumnType("boolean")
.HasColumnName("is_static");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("name");
b.Property<string>("NormalizedName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("normalized_name");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_roles");
b.HasIndex("NormalizedName");
b.ToTable("abp_roles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ClaimType")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("claim_type");
b.Property<string>("ClaimValue")
.HasMaxLength(1024)
.HasColumnType("character varying(1024)")
.HasColumnName("claim_value");
b.Property<Guid>("RoleId")
.HasColumnType("uuid")
.HasColumnName("role_id");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_role_claims");
b.HasIndex("RoleId");
b.ToTable("abp_role_claims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("Action")
.HasMaxLength(96)
.HasColumnType("character varying(96)")
.HasColumnName("action");
b.Property<string>("ApplicationName")
.HasMaxLength(96)
.HasColumnType("character varying(96)")
.HasColumnName("application_name");
b.Property<string>("BrowserInfo")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("browser_info");
b.Property<string>("ClientId")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("client_id");
b.Property<string>("ClientIpAddress")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("client_ip_address");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("CorrelationId")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("correlation_id");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<string>("Identity")
.HasMaxLength(96)
.HasColumnType("character varying(96)")
.HasColumnName("identity");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.Property<string>("TenantName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("tenant_name");
b.Property<Guid?>("UserId")
.HasColumnType("uuid")
.HasColumnName("user_id");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("user_name");
b.HasKey("Id")
.HasName("pk_abp_security_logs");
b.HasIndex("TenantId", "Action");
b.HasIndex("TenantId", "ApplicationName");
b.HasIndex("TenantId", "Identity");
b.HasIndex("TenantId", "UserId");
b.ToTable("abp_security_logs", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<int>("AccessFailedCount")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(0)
.HasColumnName("access_failed_count");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("deletion_time");
b.Property<string>("Email")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("email");
b.Property<bool>("EmailConfirmed")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("email_confirmed");
b.Property<int>("EntityVersion")
.HasColumnType("integer")
.HasColumnName("entity_version");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsActive")
.HasColumnType("boolean")
.HasColumnName("is_active");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<bool>("IsExternal")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_external");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<DateTimeOffset?>("LastPasswordChangeTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_password_change_time");
b.Property<bool>("LockoutEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("lockout_enabled");
b.Property<DateTimeOffset?>("LockoutEnd")
.HasColumnType("timestamp with time zone")
.HasColumnName("lockout_end");
b.Property<string>("Name")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("name");
b.Property<string>("NormalizedEmail")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("normalized_email");
b.Property<string>("NormalizedUserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("normalized_user_name");
b.Property<string>("PasswordHash")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("password_hash");
b.Property<string>("PhoneNumber")
.HasMaxLength(16)
.HasColumnType("character varying(16)")
.HasColumnName("phone_number");
b.Property<bool>("PhoneNumberConfirmed")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("phone_number_confirmed");
b.Property<string>("SecurityStamp")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("security_stamp");
b.Property<bool>("ShouldChangePasswordOnNextLogin")
.HasColumnType("boolean")
.HasColumnName("should_change_password_on_next_login");
b.Property<string>("Surname")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("surname");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.Property<bool>("TwoFactorEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("two_factor_enabled");
b.Property<string>("UserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("user_name");
b.HasKey("Id")
.HasName("pk_abp_users");
b.HasIndex("Email");
b.HasIndex("NormalizedEmail");
b.HasIndex("NormalizedUserName");
b.HasIndex("UserName");
b.ToTable("abp_users", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ClaimType")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("claim_type");
b.Property<string>("ClaimValue")
.HasMaxLength(1024)
.HasColumnType("character varying(1024)")
.HasColumnName("claim_value");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.Property<Guid>("UserId")
.HasColumnType("uuid")
.HasColumnName("user_id");
b.HasKey("Id")
.HasName("pk_abp_user_claims");
b.HasIndex("UserId");
b.ToTable("abp_user_claims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<DateTime>("EndTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("end_time");
b.Property<Guid>("SourceUserId")
.HasColumnType("uuid")
.HasColumnName("source_user_id");
b.Property<DateTime>("StartTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("start_time");
b.Property<Guid>("TargetUserId")
.HasColumnType("uuid")
.HasColumnName("target_user_id");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_user_delegations");
b.ToTable("abp_user_delegations", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.Property<Guid>("UserId")
.HasColumnType("uuid")
.HasColumnName("user_id");
b.Property<string>("LoginProvider")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("login_provider");
b.Property<string>("ProviderDisplayName")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("provider_display_name");
b.Property<string>("ProviderKey")
.IsRequired()
.HasMaxLength(196)
.HasColumnType("character varying(196)")
.HasColumnName("provider_key");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("UserId", "LoginProvider")
.HasName("pk_abp_user_logins");
b.HasIndex("LoginProvider", "ProviderKey");
b.ToTable("abp_user_logins", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
{
b.Property<Guid>("OrganizationUnitId")
.HasColumnType("uuid")
.HasColumnName("organization_unit_id");
b.Property<Guid>("UserId")
.HasColumnType("uuid")
.HasColumnName("user_id");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("OrganizationUnitId", "UserId")
.HasName("pk_abp_user_organization_units");
b.HasIndex("UserId", "OrganizationUnitId");
b.ToTable("abp_user_organization_units", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
{
b.Property<Guid>("UserId")
.HasColumnType("uuid")
.HasColumnName("user_id");
b.Property<Guid>("RoleId")
.HasColumnType("uuid")
.HasColumnName("role_id");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("UserId", "RoleId")
.HasName("pk_abp_user_roles");
b.HasIndex("RoleId", "UserId");
b.ToTable("abp_user_roles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
{
b.Property<Guid>("UserId")
.HasColumnType("uuid")
.HasColumnName("user_id");
b.Property<string>("LoginProvider")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("login_provider");
b.Property<string>("Name")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.Property<string>("Value")
.HasColumnType("text")
.HasColumnName("value");
b.HasKey("UserId", "LoginProvider", "Name")
.HasName("pk_abp_user_tokens");
b.ToTable("abp_user_tokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("Code")
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(95)
.HasColumnType("character varying(95)")
.HasColumnName("code");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("deletion_time");
b.Property<string>("DisplayName")
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("display_name");
b.Property<int>("EntityVersion")
.HasColumnType("integer")
.HasColumnName("entity_version");
b.Property<string>("ExtraProperties")
.IsRequired()
.ValueGeneratedOnUpdateSometimes()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<char>("IsMedicalCenter")
.ValueGeneratedOnUpdateSometimes()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_medical_center");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<Guid?>("ParentId")
.ValueGeneratedOnUpdateSometimes()
.HasColumnType("uuid")
.HasColumnName("parent_id");
b.Property<Guid?>("TenantId")
.ValueGeneratedOnUpdateSometimes()
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_organization_units");
b.HasIndex("Code");
b.HasIndex("ParentId");
b.ToTable("abp_organization_units", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
{
b.Property<Guid>("OrganizationUnitId")
.HasColumnType("uuid")
.HasColumnName("organization_unit_id");
b.Property<Guid>("RoleId")
.HasColumnType("uuid")
.HasColumnName("role_id");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("OrganizationUnitId", "RoleId")
.HasName("pk_abp_organization_unit_roles");
b.HasIndex("RoleId", "OrganizationUnitId");
b.ToTable("abp_organization_unit_roles", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ApplicationType")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("application_type");
b.Property<string>("ClientId")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("client_id");
b.Property<string>("ClientSecret")
.HasColumnType("text")
.HasColumnName("client_secret");
b.Property<string>("ClientType")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("client_type");
b.Property<string>("ClientUri")
.HasColumnType("text")
.HasColumnName("client_uri");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("ConsentType")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("consent_type");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("deletion_time");
b.Property<string>("DisplayName")
.HasColumnType("text")
.HasColumnName("display_name");
b.Property<string>("DisplayNames")
.HasColumnType("text")
.HasColumnName("display_names");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<string>("JsonWebKeySet")
.HasColumnType("text")
.HasColumnName("json_web_key_set");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("LogoUri")
.HasColumnType("text")
.HasColumnName("logo_uri");
b.Property<string>("Permissions")
.HasColumnType("text")
.HasColumnName("permissions");
b.Property<string>("PostLogoutRedirectUris")
.HasColumnType("text")
.HasColumnName("post_logout_redirect_uris");
b.Property<string>("Properties")
.HasColumnType("text")
.HasColumnName("properties");
b.Property<string>("RedirectUris")
.HasColumnType("text")
.HasColumnName("redirect_uris");
b.Property<string>("Requirements")
.HasColumnType("text")
.HasColumnName("requirements");
b.Property<string>("Settings")
.HasColumnType("text")
.HasColumnName("settings");
b.HasKey("Id")
.HasName("pk_open_iddict_applications");
b.HasIndex("ClientId");
b.ToTable("open_iddict_applications", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<Guid?>("ApplicationId")
.HasColumnType("uuid")
.HasColumnName("application_id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime?>("CreationDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_date");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("deletion_time");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Properties")
.HasColumnType("text")
.HasColumnName("properties");
b.Property<string>("Scopes")
.HasColumnType("text")
.HasColumnName("scopes");
b.Property<string>("Status")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("status");
b.Property<string>("Subject")
.HasMaxLength(400)
.HasColumnType("character varying(400)")
.HasColumnName("subject");
b.Property<string>("Type")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("type");
b.HasKey("Id")
.HasName("pk_open_iddict_authorizations");
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
b.ToTable("open_iddict_authorizations", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Scopes.OpenIddictScope", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("deletion_time");
b.Property<string>("Description")
.HasColumnType("text")
.HasColumnName("description");
b.Property<string>("Descriptions")
.HasColumnType("text")
.HasColumnName("descriptions");
b.Property<string>("DisplayName")
.HasColumnType("text")
.HasColumnName("display_name");
b.Property<string>("DisplayNames")
.HasColumnType("text")
.HasColumnName("display_names");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Name")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("name");
b.Property<string>("Properties")
.HasColumnType("text")
.HasColumnName("properties");
b.Property<string>("Resources")
.HasColumnType("text")
.HasColumnName("resources");
b.HasKey("Id")
.HasName("pk_open_iddict_scopes");
b.HasIndex("Name");
b.ToTable("open_iddict_scopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<Guid?>("ApplicationId")
.HasColumnType("uuid")
.HasColumnName("application_id");
b.Property<Guid?>("AuthorizationId")
.HasColumnType("uuid")
.HasColumnName("authorization_id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime?>("CreationDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_date");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("deletion_time");
b.Property<DateTime?>("ExpirationDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("expiration_date");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Payload")
.HasColumnType("text")
.HasColumnName("payload");
b.Property<string>("Properties")
.HasColumnType("text")
.HasColumnName("properties");
b.Property<DateTime?>("RedemptionDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("redemption_date");
b.Property<string>("ReferenceId")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("reference_id");
b.Property<string>("Status")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("status");
b.Property<string>("Subject")
.HasMaxLength(400)
.HasColumnType("character varying(400)")
.HasColumnName("subject");
b.Property<string>("Type")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("type");
b.HasKey("Id")
.HasName("pk_open_iddict_tokens");
b.HasIndex("AuthorizationId");
b.HasIndex("ReferenceId");
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
b.ToTable("open_iddict_tokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionDefinitionRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("display_name");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<string>("GroupName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("group_name");
b.Property<bool>("IsEnabled")
.HasColumnType("boolean")
.HasColumnName("is_enabled");
b.Property<byte>("MultiTenancySide")
.HasColumnType("smallint")
.HasColumnName("multi_tenancy_side");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.Property<string>("ParentName")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("parent_name");
b.Property<string>("Providers")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("providers");
b.Property<string>("StateCheckers")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("state_checkers");
b.HasKey("Id")
.HasName("pk_abp_permissions");
b.HasIndex("GroupName");
b.HasIndex("Name")
.IsUnique();
b.ToTable("abp_permissions", (string)null);
});
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.Property<string>("ProviderKey")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("provider_key");
b.Property<string>("ProviderName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("provider_name");
b.Property<Guid?>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.HasKey("Id")
.HasName("pk_abp_permission_grants");
b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("abp_permission_grants", (string)null);
});
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGroupDefinitionRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("display_name");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.HasKey("Id")
.HasName("pk_abp_permission_groups");
b.HasIndex("Name")
.IsUnique();
b.ToTable("abp_permission_groups", (string)null);
});
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.Property<string>("ProviderKey")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("provider_key");
b.Property<string>("ProviderName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("provider_name");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(2048)
.HasColumnType("character varying(2048)")
.HasColumnName("value");
b.HasKey("Id")
.HasName("pk_abp_settings");
b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("abp_settings", (string)null);
});
modelBuilder.Entity("Volo.Abp.SettingManagement.SettingDefinitionRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("DefaultValue")
.HasMaxLength(2048)
.HasColumnType("character varying(2048)")
.HasColumnName("default_value");
b.Property<string>("Description")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("description");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("display_name");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsEncrypted")
.HasColumnType("boolean")
.HasColumnName("is_encrypted");
b.Property<bool>("IsInherited")
.HasColumnType("boolean")
.HasColumnName("is_inherited");
b.Property<bool>("IsVisibleToClients")
.HasColumnType("boolean")
.HasColumnName("is_visible_to_clients");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("name");
b.Property<string>("Providers")
.HasMaxLength(1024)
.HasColumnType("character varying(1024)")
.HasColumnName("providers");
b.HasKey("Id")
.HasName("pk_abp_setting_definitions");
b.HasIndex("Name")
.IsUnique();
b.ToTable("abp_setting_definitions", (string)null);
});
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("deleter_id");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("deletion_time");
b.Property<int>("EntityVersion")
.HasColumnType("integer")
.HasColumnName("entity_version");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("text")
.HasColumnName("extra_properties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("is_deleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("name");
b.Property<string>("NormalizedName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("normalized_name");
b.HasKey("Id")
.HasName("pk_abp_tenants");
b.HasIndex("Name");
b.HasIndex("NormalizedName");
b.ToTable("abp_tenants", (string)null);
});
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
{
b.Property<Guid>("TenantId")
.HasColumnType("uuid")
.HasColumnName("tenant_id");
b.Property<string>("Name")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("name");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("character varying(1024)")
.HasColumnName("value");
b.HasKey("TenantId", "Name")
.HasName("pk_abp_tenant_connection_strings");
b.ToTable("abp_tenant_connection_strings", (string)null);
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppOrganizationUnit", b =>
{
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
.WithOne()
.HasForeignKey("Shentun.WebPeis.Models.AppOrganizationUnit", "Id")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_organization_units_abp_organization_units_id");
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointRegisterAsbitem", b =>
{
b.HasOne("Shentun.WebPeis.Models.AppointPatientRegister", "AppointPatientRegister")
.WithMany("AppointRegisterAsbitems")
.HasForeignKey("AppointPatientRegisterId")
.IsRequired()
.HasConstraintName("fk_appoint_register_asbitem");
b.Navigation("AppointPatientRegister");
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleTemplateTime", b =>
{
b.HasOne("Shentun.WebPeis.Models.AppointScheduleTemplate", "AppointScheduleTemplate")
.WithMany("AppointScheduleTemplateTimes")
.HasForeignKey("AppointScheduleTemplateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_appoint_schedule_template_time");
b.Navigation("AppointScheduleTemplate");
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleTime", b =>
{
b.HasOne("Shentun.WebPeis.Models.AppointSchedule", "AppointSchedule")
.WithMany("AppointScheduleTimes")
.HasForeignKey("AppointScheduleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_appoint_schedule_time");
b.Navigation("AppointSchedule");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Asbitem", b =>
{
b.HasOne("Shentun.WebPeis.Models.ItemType", "ItemType")
.WithMany("Asbitems")
.HasForeignKey("ItemTypeId")
.IsRequired()
.HasConstraintName("fk_asbitem_item_type");
b.Navigation("ItemType");
});
modelBuilder.Entity("Shentun.WebPeis.Models.AsbitemDetail", b =>
{
b.HasOne("Shentun.WebPeis.Models.Asbitem", "Asbitem")
.WithMany("AsbitemDetails")
.HasForeignKey("AsbitemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_asbitem_detail_asbitem");
b.HasOne("Shentun.WebPeis.Models.Item", "Item")
.WithMany("AsbitemDetails")
.HasForeignKey("ItemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_asbitem_detail_item");
b.Navigation("Asbitem");
b.Navigation("Item");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Charge", b =>
{
b.HasOne("Shentun.WebPeis.Models.AppointPatientRegister", "AppointPatientRegister")
.WithMany("Charges")
.HasForeignKey("AppointPatientRegisterId")
.IsRequired()
.HasConstraintName("fk_charge");
b.Navigation("AppointPatientRegister");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeAsbitem", b =>
{
b.HasOne("Shentun.WebPeis.Models.Charge", "Charge")
.WithMany("ChargeAsbitems")
.HasForeignKey("ChargeId")
.IsRequired()
.HasConstraintName("fk_charge_asbitem");
b.Navigation("Charge");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeBack", b =>
{
b.HasOne("Shentun.WebPeis.Models.Charge", "Charge")
.WithMany("ChargeBacks")
.HasForeignKey("ChargeId")
.IsRequired()
.HasConstraintName("fk_charge_back");
b.Navigation("Charge");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeBackAsbitem", b =>
{
b.HasOne("Shentun.WebPeis.Models.ChargeAsbitem", "ChargeAsbitem")
.WithMany("ChargeBakAsbitems")
.HasForeignKey("ChargeAsbitemId")
.IsRequired()
.HasConstraintName("fk_charge_bak_asbitem_asbitem");
b.HasOne("Shentun.WebPeis.Models.ChargeBack", "ChargeBak")
.WithMany("ChargeBakAsbitems")
.HasForeignKey("ChargeBackId")
.IsRequired()
.HasConstraintName("fk_charge_bak_asbitem");
b.Navigation("ChargeAsbitem");
b.Navigation("ChargeBak");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeBackPay", b =>
{
b.HasOne("Shentun.WebPeis.Models.ChargeBack", "ChargeBack")
.WithMany("ChargeBackPays")
.HasForeignKey("ChargeBackId")
.IsRequired()
.HasConstraintName("fk_charge_back_pay");
b.Navigation("ChargeBack");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargePay", b =>
{
b.HasOne("Shentun.WebPeis.Models.Charge", "Charge")
.WithMany()
.HasForeignKey("ChargeId")
.IsRequired()
.HasConstraintName("fk_charge_pay");
b.Navigation("Charge");
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgGroup", b =>
{
b.HasOne("Shentun.WebPeis.Models.CustomerOrgRegister", "CustomerOrgRegister")
.WithMany("CustomerOrgGroups")
.HasForeignKey("CustomerOrgRegisterId")
.IsRequired()
.HasConstraintName("fk_customer_org_group_register");
b.Navigation("CustomerOrgRegister");
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgGroupDetail", b =>
{
b.HasOne("Shentun.WebPeis.Models.Asbitem", "Asbitem")
.WithMany("CustomerOrgGroupDetails")
.HasForeignKey("AsbitemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_org_group_detail_asbitem");
b.HasOne("Shentun.WebPeis.Models.CustomerOrgGroup", "CustomerOrgGroup")
.WithMany("CustomerOrgGroupDetails")
.HasForeignKey("CustomerOrgGroupId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_org_group_detail_org_group");
b.Navigation("Asbitem");
b.Navigation("CustomerOrgGroup");
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgRegister", b =>
{
b.HasOne("Shentun.WebPeis.Models.CustomerOrg", "CustomerOrg")
.WithMany("CustomerOrgRegisters")
.HasForeignKey("CustomerOrgId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_customer_org_register_customer_org_customer_org_id");
b.Navigation("CustomerOrg");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Diagnosis", b =>
{
b.HasOne("Shentun.WebPeis.Models.ItemType", "ItemType")
.WithMany("Diagnoses")
.HasForeignKey("ItemTypeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_diagnosis_item_type");
b.Navigation("ItemType");
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRiskLevel", b =>
{
b.HasOne("Shentun.WebPeis.Models.DiseaseRisk", "DiseaseRisk")
.WithMany("DiseaseRiskLevels")
.HasForeignKey("DiseaseRiskId")
.IsRequired()
.HasConstraintName("fk_disease_risk_level");
b.Navigation("DiseaseRisk");
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRiskLevelAsbitem", b =>
{
b.HasOne("Shentun.WebPeis.Models.DiseaseRiskLevel", "DiseaseRiskLevel")
.WithMany("DiseaseRiskLevelAsbitems")
.HasForeignKey("DiseaseRiskLevelId")
.IsRequired()
.HasConstraintName("disease_risk_level_asbitem");
b.Navigation("DiseaseRiskLevel");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Item", b =>
{
b.HasOne("Shentun.WebPeis.Models.ItemType", "ItemType")
.WithMany("Items")
.HasForeignKey("ItemTypeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_item_item_type");
b.Navigation("ItemType");
});
modelBuilder.Entity("Shentun.WebPeis.Models.MedicalPackageDetail", b =>
{
b.HasOne("Shentun.WebPeis.Models.Asbitem", "Asbitem")
.WithMany("MedicalPackageDetails")
.HasForeignKey("AsbitemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_medical");
b.HasOne("Shentun.WebPeis.Models.MedicalPackage", "MedicalPackage")
.WithMany("MedicalPackageDetails")
.HasForeignKey("MedicalPackageId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_medica2");
b.Navigation("Asbitem");
b.Navigation("MedicalPackage");
});
modelBuilder.Entity("Shentun.WebPeis.Models.PatientRegister", b =>
{
b.HasOne("Shentun.WebPeis.Models.MaritalStatus", "MaritalStatus")
.WithMany("PatientRegisters")
.HasForeignKey("MaritalStatusId")
.IsRequired()
.HasConstraintName("fk_patient_register_marital_status_id");
b.Navigation("MaritalStatus");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionAnswerAsbitem", b =>
{
b.HasOne("Shentun.WebPeis.Models.QuestionAnswer", "QuestionAnswer")
.WithMany("QuestionAnswerAsbitems")
.HasForeignKey("QuestionAnswerId")
.IsRequired()
.HasConstraintName("question_answer_asbitem");
b.Navigation("QuestionAnswer");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegister", b =>
{
b.HasOne("Shentun.WebPeis.Models.Person", "Person")
.WithMany("QuestionRegisters")
.HasForeignKey("PersonId")
.IsRequired()
.HasConstraintName("fk_question_register");
b.Navigation("Person");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterAnswer", b =>
{
b.HasOne("Shentun.WebPeis.Models.QuestionAnswer", "QuestionAnswer")
.WithMany("QuestionRegisterAnswers")
.HasForeignKey("QuestionAnswerId")
.IsRequired()
.HasConstraintName("fk_question_register_answer_a");
b.HasOne("Shentun.WebPeis.Models.QuestionRegisterItem", "QuestionRegisterItem")
.WithMany("QuestionRegisterAnswers")
.HasForeignKey("QuestionRegisterItemId")
.IsRequired()
.HasConstraintName("fk_question_register_answer");
b.Navigation("QuestionAnswer");
b.Navigation("QuestionRegisterItem");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterAnswerChild", b =>
{
b.HasOne("Shentun.WebPeis.Models.QuestionRegisterAnswer", "QuestionRegisterAnswer")
.WithMany("QuestionRegisterAnswerChildren")
.HasForeignKey("QuestionRegisterAnswerId")
.IsRequired()
.HasConstraintName("fk_question_register_answer_child");
b.Navigation("QuestionRegisterAnswer");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterItem", b =>
{
b.HasOne("Shentun.WebPeis.Models.Question", "Question")
.WithMany("QuestionRegisterItems")
.HasForeignKey("QuestionId")
.IsRequired()
.HasConstraintName("fk_question_register_item_q");
b.HasOne("Shentun.WebPeis.Models.QuestionRegister", "QuestionRegister")
.WithMany("QuestionRegisterItems")
.HasForeignKey("QuestionRegisterId")
.IsRequired()
.HasConstraintName("fk_question_register_item");
b.Navigation("Question");
b.Navigation("QuestionRegister");
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckItem", b =>
{
b.HasOne("Shentun.WebPeis.Models.RegisterCheck", "RegisterCheck")
.WithMany("RegisterCheckItems")
.HasForeignKey("RegisterCheckId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_register_item_register_check");
b.Navigation("RegisterCheck");
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckPicture", b =>
{
b.HasOne("Shentun.WebPeis.Models.RegisterCheck", "RegisterCheck")
.WithMany("RegisterCheckPictures")
.HasForeignKey("RegisterCheckId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_check_picture_register_check");
b.Navigation("RegisterCheck");
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckSuggestion", b =>
{
b.HasOne("Shentun.WebPeis.Models.RegisterCheck", "RegisterCheck")
.WithMany("RegisterCheckSuggestions")
.HasForeignKey("RegisterCheckId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_registe");
b.Navigation("RegisterCheck");
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheckSummary", b =>
{
b.HasOne("Shentun.WebPeis.Models.RegisterCheck", "RegisterCheck")
.WithMany("RegisterCheckSummaries")
.HasForeignKey("RegisterCheckId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_registe");
b.Navigation("RegisterCheck");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumDiagnosis", b =>
{
b.HasOne("Shentun.WebPeis.Models.PatientRegister", "PatientRegister")
.WithMany("SumDiagnoses")
.HasForeignKey("PatientRegisterId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_sum_dia");
b.Navigation("PatientRegister");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSuggestionContent", b =>
{
b.HasOne("Shentun.WebPeis.Models.SumSuggestionHeader", "SumSuggestionHeader")
.WithMany("SumSuggestionContents")
.HasForeignKey("SumSuggestionHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_sum_sug");
b.Navigation("SumSuggestionHeader");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSuggestionHeader", b =>
{
b.HasOne("Shentun.WebPeis.Models.PatientRegister", "PatientRegister")
.WithMany("SumSuggestionHeaders")
.HasForeignKey("PatientRegisterId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_sum_sug");
b.Navigation("PatientRegister");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSummaryContent", b =>
{
b.HasOne("Shentun.WebPeis.Models.SumSummaryHeader", "SumSummaryHeader")
.WithMany("SumSummaryContents")
.HasForeignKey("SumSummaryHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_sum_sum");
b.Navigation("SumSummaryHeader");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSummaryHeader", b =>
{
b.HasOne("Shentun.WebPeis.Models.PatientRegister", "PatientRegister")
.WithMany("SumSummaryHeaders")
.HasForeignKey("PatientRegisterId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_sum_sum");
b.Navigation("PatientRegister");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParm", b =>
{
b.HasOne("Shentun.WebPeis.Models.SysParmType", "SysParmType")
.WithMany("SysParms")
.HasForeignKey("SysParmTypeId")
.IsRequired()
.HasConstraintName("fk_sys_parm_sys_parm_type");
b.Navigation("SysParmType");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParmValue", b =>
{
b.HasOne("Shentun.WebPeis.Models.SysParm", "SysParm")
.WithMany("SysParmValues")
.HasForeignKey("SysParmId")
.IsRequired()
.HasConstraintName("fk_sys_parm_value_sys_parm");
b.Navigation("SysParm");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParmValueOption", b =>
{
b.HasOne("Shentun.WebPeis.Models.SysParm", "SysParm")
.WithMany("SysParmValueOptions")
.HasForeignKey("SysParmId")
.IsRequired()
.HasConstraintName("fk_sys_par");
b.Navigation("SysParm");
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
{
b.HasOne("Volo.Abp.AuditLogging.AuditLog", null)
.WithMany("Actions")
.HasForeignKey("AuditLogId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_audit_log_actions_abp_audit_logs_audit_log_id");
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{
b.HasOne("Volo.Abp.AuditLogging.AuditLog", null)
.WithMany("EntityChanges")
.HasForeignKey("AuditLogId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_entity_changes_abp_audit_logs_audit_log_id");
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
{
b.HasOne("Volo.Abp.AuditLogging.EntityChange", null)
.WithMany("PropertyChanges")
.HasForeignKey("EntityChangeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_entity_property_changes_abp_entity_changes_entity_chang~");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
.WithMany("Claims")
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_role_claims_abp_roles_role_id");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Claims")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_user_claims_abp_users_user_id");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Logins")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_user_logins_abp_users_user_id");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
{
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
.WithMany()
.HasForeignKey("OrganizationUnitId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_user_organization_units_abp_organization_units_organizati~");
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("OrganizationUnits")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_user_organization_units_abp_users_user_id");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_user_roles_abp_roles_role_id");
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Roles")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_user_roles_abp_users_user_id");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Tokens")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_user_tokens_abp_users_user_id");
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
{
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
.WithMany()
.HasForeignKey("ParentId")
.HasConstraintName("fk_abp_organization_units_abp_organization_units_parent_id");
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
{
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
.WithMany("Roles")
.HasForeignKey("OrganizationUnitId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_organization_unit_roles_abp_organization_units_organiza~");
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_organization_unit_roles_abp_roles_role_id");
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b =>
{
b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null)
.WithMany()
.HasForeignKey("ApplicationId")
.HasConstraintName("fk_open_iddict_authorizations_open_iddict_applications_applica~");
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b =>
{
b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null)
.WithMany()
.HasForeignKey("ApplicationId")
.HasConstraintName("fk_open_iddict_tokens_open_iddict_applications_application_id");
b.HasOne("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", null)
.WithMany()
.HasForeignKey("AuthorizationId")
.HasConstraintName("fk_open_iddict_tokens_open_iddict_authorizations_authorization~");
});
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
{
b.HasOne("Volo.Abp.TenantManagement.Tenant", null)
.WithMany("ConnectionStrings")
.HasForeignKey("TenantId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_abp_tenant_connection_strings_abp_tenants_tenant_id");
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointPatientRegister", b =>
{
b.Navigation("AppointRegisterAsbitems");
b.Navigation("Charges");
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointSchedule", b =>
{
b.Navigation("AppointScheduleTimes");
});
modelBuilder.Entity("Shentun.WebPeis.Models.AppointScheduleTemplate", b =>
{
b.Navigation("AppointScheduleTemplateTimes");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Asbitem", b =>
{
b.Navigation("AsbitemDetails");
b.Navigation("CustomerOrgGroupDetails");
b.Navigation("MedicalPackageDetails");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Charge", b =>
{
b.Navigation("ChargeAsbitems");
b.Navigation("ChargeBacks");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeAsbitem", b =>
{
b.Navigation("ChargeBakAsbitems");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ChargeBack", b =>
{
b.Navigation("ChargeBackPays");
b.Navigation("ChargeBakAsbitems");
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrg", b =>
{
b.Navigation("CustomerOrgRegisters");
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgGroup", b =>
{
b.Navigation("CustomerOrgGroupDetails");
});
modelBuilder.Entity("Shentun.WebPeis.Models.CustomerOrgRegister", b =>
{
b.Navigation("CustomerOrgGroups");
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRisk", b =>
{
b.Navigation("DiseaseRiskLevels");
});
modelBuilder.Entity("Shentun.WebPeis.Models.DiseaseRiskLevel", b =>
{
b.Navigation("DiseaseRiskLevelAsbitems");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Item", b =>
{
b.Navigation("AsbitemDetails");
});
modelBuilder.Entity("Shentun.WebPeis.Models.ItemType", b =>
{
b.Navigation("Asbitems");
b.Navigation("Diagnoses");
b.Navigation("Items");
});
modelBuilder.Entity("Shentun.WebPeis.Models.MaritalStatus", b =>
{
b.Navigation("PatientRegisters");
});
modelBuilder.Entity("Shentun.WebPeis.Models.MedicalPackage", b =>
{
b.Navigation("MedicalPackageDetails");
});
modelBuilder.Entity("Shentun.WebPeis.Models.PatientRegister", b =>
{
b.Navigation("SumDiagnoses");
b.Navigation("SumSuggestionHeaders");
b.Navigation("SumSummaryHeaders");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Person", b =>
{
b.Navigation("QuestionRegisters");
});
modelBuilder.Entity("Shentun.WebPeis.Models.Question", b =>
{
b.Navigation("QuestionRegisterItems");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionAnswer", b =>
{
b.Navigation("QuestionAnswerAsbitems");
b.Navigation("QuestionRegisterAnswers");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegister", b =>
{
b.Navigation("QuestionRegisterItems");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterAnswer", b =>
{
b.Navigation("QuestionRegisterAnswerChildren");
});
modelBuilder.Entity("Shentun.WebPeis.Models.QuestionRegisterItem", b =>
{
b.Navigation("QuestionRegisterAnswers");
});
modelBuilder.Entity("Shentun.WebPeis.Models.RegisterCheck", b =>
{
b.Navigation("RegisterCheckItems");
b.Navigation("RegisterCheckPictures");
b.Navigation("RegisterCheckSuggestions");
b.Navigation("RegisterCheckSummaries");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSuggestionHeader", b =>
{
b.Navigation("SumSuggestionContents");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SumSummaryHeader", b =>
{
b.Navigation("SumSummaryContents");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParm", b =>
{
b.Navigation("SysParmValueOptions");
b.Navigation("SysParmValues");
});
modelBuilder.Entity("Shentun.WebPeis.Models.SysParmType", b =>
{
b.Navigation("SysParms");
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{
b.Navigation("Actions");
b.Navigation("EntityChanges");
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{
b.Navigation("PropertyChanges");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
{
b.Navigation("Claims");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
{
b.Navigation("Claims");
b.Navigation("Logins");
b.Navigation("OrganizationUnits");
b.Navigation("Roles");
b.Navigation("Tokens");
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
{
b.Navigation("Roles");
});
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
{
b.Navigation("ConnectionStrings");
});
#pragma warning restore 612, 618
}
}
}