9 changed files with 28716 additions and 3 deletions
-
78src/Shentun.Peis.Domain/PatientRegisterExters/PatientRegisterExter.cs
-
24src/Shentun.Peis.EntityFrameworkCore/DbMapping/PatientRegisterExters/PatientRegisterExterDbMapping.cs
-
6src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
-
14242src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.Designer.cs
-
45src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.cs
-
14246src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.Designer.cs
-
BINsrc/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.cs
-
76src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
-
2src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs
@ -0,0 +1,78 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities.Auditing; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace Shentun.Peis.Models |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
///
|
||||
|
/// </summary>
|
||||
|
[Table("patient_register_exter")] |
||||
|
public class PatientRegisterExter : Entity, IHasConcurrencyStamp |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 人员登记ID
|
||||
|
/// </summary>
|
||||
|
[Key] |
||||
|
[Column("patient_register_id")] |
||||
|
public Guid PatientRegisterId { get; set; } |
||||
|
|
||||
|
[Column("qztl_type")] |
||||
|
public char? QztlType { get; set; } |
||||
|
|
||||
|
[Column("qztl_is_cw")] |
||||
|
public char? QztlIsCw { get; set; } |
||||
|
|
||||
|
[Column("qztl_is_cy")] |
||||
|
public char? QztlIsCy { get; set; } |
||||
|
|
||||
|
[Column("qztl_is_gt")] |
||||
|
public char? QztlIsGt { get; set; } |
||||
|
|
||||
|
[Column("qztl_is_main")] |
||||
|
public char? QztlIsMain { get; set; } |
||||
|
|
||||
|
[Column("qztl_is_wh")] |
||||
|
public char? QztlIsWh { get; set; } |
||||
|
|
||||
|
[Column("qztl_is_fj")] |
||||
|
public char? QztlIsFj { get; set; } |
||||
|
|
||||
|
[Column("is_qztl_import")] |
||||
|
public char? IsQztlImport { get; set; } |
||||
|
|
||||
|
[Column("upload_qztl_flag")] |
||||
|
public char? UploadQztlFlag { get; set; } |
||||
|
|
||||
|
[Column("planuserid")] |
||||
|
[StringLength(20)] |
||||
|
public string Planuserid { get; set; } |
||||
|
|
||||
|
[Column("remark2")] |
||||
|
[StringLength(100)] |
||||
|
public string Remark2 { get; set; } |
||||
|
|
||||
|
[Column("remark3")] |
||||
|
[StringLength(100)] |
||||
|
public string Remark3 { get; set; } |
||||
|
|
||||
|
[Column("remark4")] |
||||
|
[StringLength(100)] |
||||
|
public string Remark4 { get; set; } |
||||
|
|
||||
|
[Column("concurrency_stamp")] |
||||
|
public string ConcurrencyStamp { get; set; } |
||||
|
|
||||
|
public override object[] GetKeys() |
||||
|
{ |
||||
|
return new object[] { PatientRegisterId }; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,24 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Shentun.Peis.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Shentun.Peis.EntityFrameworkCore; |
||||
|
|
||||
|
namespace Shentun.Peis.DbMapping.PatientRegisterExters |
||||
|
{ |
||||
|
|
||||
|
internal class PatientRegisterExterDbMapping : IEntityTypeConfiguration<PatientRegisterExter> |
||||
|
{ |
||||
|
public void Configure(EntityTypeBuilder<PatientRegisterExter> entity) |
||||
|
{ |
||||
|
entity.HasComment("人员登记信息扩展"); |
||||
|
|
||||
|
entity.ConfigureByConvention(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
14242
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,45 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class init20240503002 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "patient_register_exter", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
patient_register_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
qztl_type = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
qztl_is_cw = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
qztl_is_cy = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
qztl_is_gt = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
qztl_is_main = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
qztl_is_wh = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
qztl_is_fj = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
is_qztl_import = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
upload_qztl_flag = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
planuserid = table.Column<string>(type: "text", nullable: true), |
||||
|
remark2 = table.Column<string>(type: "text", nullable: true), |
||||
|
remark3 = table.Column<string>(type: "text", nullable: true), |
||||
|
remark4 = table.Column<string>(type: "text", nullable: true), |
||||
|
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_patient_register_exter", x => x.patient_register_id); |
||||
|
}, |
||||
|
comment: "人员登记信息扩展"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "patient_register_exter"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
14246
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue