noti หนังสือเวียน
This commit is contained in:
parent
390eb7296b
commit
d96ad94299
12 changed files with 16809 additions and 7 deletions
16292
BMA.EHR.Infrastructure/Migrations/20230913144418_update table retirementperiod add Document.Designer.cs
generated
Normal file
16292
BMA.EHR.Infrastructure/Migrations/20230913144418_update table retirementperiod add Document.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 updatetableretirementperiodaddDocument : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "DocumentId",
|
||||
table: "RetirementDeceasedNotis",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RetirementDeceasedNotis_DocumentId",
|
||||
table: "RetirementDeceasedNotis",
|
||||
column: "DocumentId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_RetirementDeceasedNotis_Documents_DocumentId",
|
||||
table: "RetirementDeceasedNotis",
|
||||
column: "DocumentId",
|
||||
principalTable: "Documents",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_RetirementDeceasedNotis_Documents_DocumentId",
|
||||
table: "RetirementDeceasedNotis");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_RetirementDeceasedNotis_DocumentId",
|
||||
table: "RetirementDeceasedNotis");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DocumentId",
|
||||
table: "RetirementDeceasedNotis");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12801,6 +12801,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<Guid?>("DocumentId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("FirstName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
|
|
@ -12868,6 +12871,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("DocumentId");
|
||||
|
||||
b.HasIndex("ReceiveUserId");
|
||||
|
||||
b.HasIndex("RetirementDeceasedId");
|
||||
|
|
@ -15761,6 +15766,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document")
|
||||
.WithMany()
|
||||
.HasForeignKey("DocumentId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "ReceiveUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReceiveUserId")
|
||||
|
|
@ -15773,6 +15782,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Document");
|
||||
|
||||
b.Navigation("ReceiveUser");
|
||||
|
||||
b.Navigation("RetirementDeceased");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue