noti พ้นราชการ บรรจุ
This commit is contained in:
parent
e5af4a3513
commit
d34f04ffee
25 changed files with 16558 additions and 130 deletions
16177
BMA.EHR.Infrastructure/Migrations/20230907030700_update table placementprofile add image.Designer.cs
generated
Normal file
16177
BMA.EHR.Infrastructure/Migrations/20230907030700_update table placementprofile add image.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 updatetableplacementprofileaddimage : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ProfileImgId",
|
||||
table: "PlacementProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfiles_ProfileImgId",
|
||||
table: "PlacementProfiles",
|
||||
column: "ProfileImgId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementProfiles_Documents_ProfileImgId",
|
||||
table: "PlacementProfiles",
|
||||
column: "ProfileImgId",
|
||||
principalTable: "Documents",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementProfiles_Documents_ProfileImgId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementProfiles_ProfileImgId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProfileImgId",
|
||||
table: "PlacementProfiles");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11620,6 +11620,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid?>("PrefixId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("ProfileImgId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Race")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
|
|
@ -11727,6 +11730,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasIndex("PrefixId");
|
||||
|
||||
b.HasIndex("ProfileImgId");
|
||||
|
||||
b.HasIndex("RegistDistrictId");
|
||||
|
||||
b.HasIndex("RegistProvinceId");
|
||||
|
|
@ -15295,6 +15300,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.WithMany()
|
||||
.HasForeignKey("PrefixId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg")
|
||||
.WithMany()
|
||||
.HasForeignKey("ProfileImgId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "RegistDistrict")
|
||||
.WithMany()
|
||||
.HasForeignKey("RegistDistrictId");
|
||||
|
|
@ -15359,6 +15368,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.Navigation("Prefix");
|
||||
|
||||
b.Navigation("ProfileImg");
|
||||
|
||||
b.Navigation("RegistDistrict");
|
||||
|
||||
b.Navigation("RegistProvince");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue