บันทึกไฟล์หนังสือเวียน
This commit is contained in:
parent
60dc1025a9
commit
4d420a8443
7 changed files with 16373 additions and 5 deletions
16303
BMA.EHR.Infrastructure/Migrations/20230913163953_update table retirementperiod add Documentforward.Designer.cs
generated
Normal file
16303
BMA.EHR.Infrastructure/Migrations/20230913163953_update table retirementperiod add Documentforward.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableretirementperiodaddDocumentforward : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "DocumentForwardId",
|
||||
table: "RetirementDeceaseds",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RetirementDeceaseds_DocumentForwardId",
|
||||
table: "RetirementDeceaseds",
|
||||
column: "DocumentForwardId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_RetirementDeceaseds_Documents_DocumentForwardId",
|
||||
table: "RetirementDeceaseds",
|
||||
column: "DocumentForwardId",
|
||||
principalTable: "Documents",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_RetirementDeceaseds_Documents_DocumentForwardId",
|
||||
table: "RetirementDeceaseds");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_RetirementDeceaseds_DocumentForwardId",
|
||||
table: "RetirementDeceaseds");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DocumentForwardId",
|
||||
table: "RetirementDeceaseds");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12717,6 +12717,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่เสียชีวิต");
|
||||
|
||||
b.Property<Guid?>("DocumentForwardId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("DocumentId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
|
|
@ -12760,6 +12763,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("DocumentForwardId");
|
||||
|
||||
b.HasIndex("DocumentId");
|
||||
|
||||
b.HasIndex("ProfileId");
|
||||
|
|
@ -15749,6 +15754,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "DocumentForward")
|
||||
.WithMany()
|
||||
.HasForeignKey("DocumentForwardId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document")
|
||||
.WithMany()
|
||||
.HasForeignKey("DocumentId");
|
||||
|
|
@ -15761,6 +15770,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.Navigation("Document");
|
||||
|
||||
b.Navigation("DocumentForward");
|
||||
|
||||
b.Navigation("Profile");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue