api คำขอโอน
This commit is contained in:
parent
f878ef239e
commit
f255b1e933
15 changed files with 13056 additions and 42 deletions
12178
BMA.EHR.Infrastructure/Migrations/20230804053012_update insignia add doc.Designer.cs
generated
Normal file
12178
BMA.EHR.Infrastructure/Migrations/20230804053012_update insignia add doc.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 updateinsigniaadddoc : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ReliefDocId",
|
||||
table: "InsigniaPeriods",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_InsigniaPeriods_ReliefDocId",
|
||||
table: "InsigniaPeriods",
|
||||
column: "ReliefDocId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InsigniaPeriods_Documents_ReliefDocId",
|
||||
table: "InsigniaPeriods",
|
||||
column: "ReliefDocId",
|
||||
principalTable: "Documents",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InsigniaPeriods_Documents_ReliefDocId",
|
||||
table: "InsigniaPeriods");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_InsigniaPeriods_ReliefDocId",
|
||||
table: "InsigniaPeriods");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReliefDocId",
|
||||
table: "InsigniaPeriods");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5145,6 +5145,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)");
|
||||
|
||||
b.Property<Guid?>("ReliefDocId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime>("StartDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
|
|
@ -5158,6 +5161,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ReliefDocId");
|
||||
|
||||
b.ToTable("InsigniaPeriods");
|
||||
});
|
||||
|
||||
|
|
@ -11313,6 +11318,15 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("ProfileTraining");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaPeriod", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReliefDocId");
|
||||
|
||||
b.Navigation("ReliefDoc");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Insignias.InsigniaRequest", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "Organization")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue