แก้โครงสร้างพ้นราชการ
This commit is contained in:
parent
18d75f4b04
commit
db712d586a
41 changed files with 125142 additions and 411 deletions
17550
BMA.EHR.Infrastructure/Migrations/20240502110245_update table PlacementRecive add profileid.Designer.cs
generated
Normal file
17550
BMA.EHR.Infrastructure/Migrations/20240502110245_update table PlacementRecive add profileid.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,28 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementReciveaddprofileid : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "positionName",
|
||||
table: "PlacementReceives",
|
||||
newName: "position");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "position",
|
||||
table: "PlacementReceives",
|
||||
newName: "positionName");
|
||||
}
|
||||
}
|
||||
}
|
||||
17682
BMA.EHR.Infrastructure/Migrations/20240502135321_update table PlacementRecive add profileid1.Designer.cs
generated
Normal file
17682
BMA.EHR.Infrastructure/Migrations/20240502135321_update table PlacementRecive add profileid1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,449 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementReciveaddprofileid1 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "positionName",
|
||||
table: "PlacementAppointments",
|
||||
newName: "position");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOld",
|
||||
table: "RetirementOuts",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PositionOld",
|
||||
table: "RetirementOuts",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOld",
|
||||
table: "RetirementOthers",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PositionOld",
|
||||
table: "RetirementOthers",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementRepatriations",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PositionOld",
|
||||
table: "PlacementRepatriations",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PositionOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child1Old",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อหน่วยงาน child1 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child1OldId",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child1 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child1ShortNameOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อย่อหน่วยงาน child1 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child2Old",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อหน่วยงาน child2 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child2OldId",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child2 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child2ShortNameOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อย่อหน่วยงาน child2 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child3Old",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อหน่วยงาน child3 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child3OldId",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child3 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child3ShortNameOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อย่อหน่วยงาน child3 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child4Old",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อหน่วยงาน child4 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child4OldId",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน child4 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "child4ShortNameOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อย่อหน่วยงาน child4 old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "posLevelNameOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อระดับตำแหน่ง old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "posLevelOldId",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id ระดับตำแหน่ง old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "posMasterNoOld",
|
||||
table: "PlacementReceives",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "เลขที่ตำแหน่ง old");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "posTypeNameOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อประเภทตำแหน่ง old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "posTypeOldId",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id ประเภทตำแหน่ง old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "positionOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อตำแหน่งในสายงาน old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "rootOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อหน่วยงาน root old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "rootOldId",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "id หน่วยงาน root old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "rootShortNameOld",
|
||||
table: "PlacementReceives",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ชื่อย่อหน่วยงาน root old")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementOfficers",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PositionOld",
|
||||
table: "PlacementOfficers",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "OrganizationPositionOld",
|
||||
table: "PlacementAppointments",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัด/ตำแหน่งเเดิม",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true,
|
||||
oldComment: "สังกัดเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementAppointments",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PositionOld",
|
||||
table: "PlacementAppointments",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOld",
|
||||
table: "RetirementOuts");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionOld",
|
||||
table: "RetirementOuts");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOld",
|
||||
table: "RetirementOthers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionOld",
|
||||
table: "RetirementOthers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementRepatriations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionOld",
|
||||
table: "PlacementRepatriations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child1Old",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child1OldId",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child1ShortNameOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child2Old",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child2OldId",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child2ShortNameOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child3Old",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child3OldId",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child3ShortNameOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child4Old",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child4OldId",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "child4ShortNameOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "posLevelNameOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "posLevelOldId",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "posMasterNoOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "posTypeNameOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "posTypeOldId",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "positionOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "rootOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "rootOldId",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "rootShortNameOld",
|
||||
table: "PlacementReceives");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementOfficers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionOld",
|
||||
table: "PlacementOfficers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOld",
|
||||
table: "PlacementAppointments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionOld",
|
||||
table: "PlacementAppointments");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "position",
|
||||
table: "PlacementAppointments",
|
||||
newName: "positionName");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "OrganizationPositionOld",
|
||||
table: "PlacementAppointments",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัดเดิม",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true,
|
||||
oldComment: "สังกัด/ตำแหน่งเเดิม")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
17682
BMA.EHR.Infrastructure/Migrations/20240503020659_update table PlacementRecive add profileid2.Designer.cs
generated
Normal file
17682
BMA.EHR.Infrastructure/Migrations/20240503020659_update table PlacementRecive add profileid2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementReciveaddprofileid2 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
17669
BMA.EHR.Infrastructure/Migrations/20240503032550_update table PlacementRecive remove ReceiveUser.Designer.cs
generated
Normal file
17669
BMA.EHR.Infrastructure/Migrations/20240503032550_update table PlacementRecive remove ReceiveUser.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,52 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementReciveremoveReceiveUser : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_RetirementDeceasedNotis_Profiles_ReceiveUserId",
|
||||
table: "RetirementDeceasedNotis");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_RetirementDeceasedNotis_ReceiveUserId",
|
||||
table: "RetirementDeceasedNotis");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReceiveUserId",
|
||||
table: "RetirementDeceasedNotis");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "ReceiveUserId",
|
||||
table: "RetirementDeceasedNotis",
|
||||
type: "char(36)",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RetirementDeceasedNotis_ReceiveUserId",
|
||||
table: "RetirementDeceasedNotis",
|
||||
column: "ReceiveUserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_RetirementDeceasedNotis_Profiles_ReceiveUserId",
|
||||
table: "RetirementDeceasedNotis",
|
||||
column: "ReceiveUserId",
|
||||
principalTable: "Profiles",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
||||
17674
BMA.EHR.Infrastructure/Migrations/20240503033648_update table PlacementRecive add dateOfBirth.Designer.cs
generated
Normal file
17674
BMA.EHR.Infrastructure/Migrations/20240503033648_update table PlacementRecive add dateOfBirth.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementReciveadddateOfBirth : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "DateOfBirth",
|
||||
table: "PlacementAppointments",
|
||||
type: "datetime(6)",
|
||||
maxLength: 40,
|
||||
nullable: true,
|
||||
comment: "วันเกิด");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DateOfBirth",
|
||||
table: "PlacementAppointments");
|
||||
}
|
||||
}
|
||||
}
|
||||
17664
BMA.EHR.Infrastructure/Migrations/20240503044201_update table PlacementRecive add typeCommand.Designer.cs
generated
Normal file
17664
BMA.EHR.Infrastructure/Migrations/20240503044201_update table PlacementRecive add typeCommand.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementReciveaddtypeCommand : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementAppointments_CommandTypes_CommandTypeId",
|
||||
table: "PlacementAppointments");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementAppointments_CommandTypeId",
|
||||
table: "PlacementAppointments");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CommandTypeId",
|
||||
table: "PlacementAppointments");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "typeCommand",
|
||||
table: "PlacementAppointments",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ประเภทคำสั่ง")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "typeCommand",
|
||||
table: "PlacementAppointments");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "CommandTypeId",
|
||||
table: "PlacementAppointments",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementAppointments_CommandTypeId",
|
||||
table: "PlacementAppointments",
|
||||
column: "CommandTypeId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementAppointments_CommandTypes_CommandTypeId",
|
||||
table: "PlacementAppointments",
|
||||
column: "CommandTypeId",
|
||||
principalTable: "CommandTypes",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
17668
BMA.EHR.Infrastructure/Migrations/20240503061857_update table PlacementRecive add reportdate.Designer.cs
generated
Normal file
17668
BMA.EHR.Infrastructure/Migrations/20240503061857_update table PlacementRecive add reportdate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetablePlacementReciveaddreportdate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ReportingDate",
|
||||
table: "PlacementAppointments",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันที่รายงานตัว");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReportingDate",
|
||||
table: "PlacementAppointments");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11084,9 +11084,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("double")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เงินเดือน");
|
||||
|
||||
b.Property<Guid?>("CommandTypeId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
|
|
@ -11106,6 +11103,11 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<DateTime?>("DateOfBirth")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันเกิด");
|
||||
|
||||
b.Property<string>("EducationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("วุฒิ/สาขาเดิม");
|
||||
|
|
@ -11133,10 +11135,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด/ตำแหน่งเเดิม");
|
||||
|
||||
b.Property<DateTime?>("PositionDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ดำรงตำแหน่งในระดับปัจจุบันเมื่อ");
|
||||
|
|
@ -11149,6 +11155,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -11161,6 +11171,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่บรรจุ");
|
||||
|
||||
b.Property<DateTime?>("ReportingDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่รายงานตัว");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
|
|
@ -11326,6 +11340,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id ประเภทตำแหน่ง old");
|
||||
|
||||
b.Property<string>("position")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
|
||||
b.Property<string>("positionField")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สายงาน");
|
||||
|
|
@ -11334,10 +11352,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id ตำแหน่ง");
|
||||
|
||||
b.Property<string>("positionName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
|
||||
b.Property<string>("positionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน old");
|
||||
|
|
@ -11382,9 +11396,11 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ประเภทราชการ");
|
||||
|
||||
b.HasKey("Id");
|
||||
b.Property<string>("typeCommand")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ประเภทคำสั่ง");
|
||||
|
||||
b.HasIndex("CommandTypeId");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PlacementAppointments");
|
||||
});
|
||||
|
|
@ -11790,6 +11806,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ช่วยราชการไป");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
|
@ -11802,6 +11822,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -12650,6 +12674,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(100)")
|
||||
.HasComment("สัญชาติ");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
|
@ -12662,6 +12690,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -12703,10 +12735,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child1OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child1ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child2")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2");
|
||||
|
|
@ -12715,10 +12759,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child2OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child2ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child3")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3");
|
||||
|
|
@ -12727,10 +12783,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child3OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child3ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child4")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4");
|
||||
|
|
@ -12739,10 +12807,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("child4OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("child4ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("citizenId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เลขบัตรประชาชน");
|
||||
|
|
@ -12775,10 +12855,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อระดับตำแหน่ง");
|
||||
|
||||
b.Property<string>("posLevelNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อระดับตำแหน่ง old");
|
||||
|
||||
b.Property<string>("posLevelOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id ระดับตำแหน่ง old");
|
||||
|
||||
b.Property<int?>("posMasterNo")
|
||||
.HasColumnType("int")
|
||||
.HasComment("เลขที่ตำแหน่ง");
|
||||
|
||||
b.Property<int?>("posMasterNoOld")
|
||||
.HasColumnType("int")
|
||||
.HasComment("เลขที่ตำแหน่ง old");
|
||||
|
||||
b.Property<string>("posTypeId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id ประเภทตำแหน่ง");
|
||||
|
|
@ -12787,6 +12879,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อประเภทตำแหน่ง");
|
||||
|
||||
b.Property<string>("posTypeNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อประเภทตำแหน่ง old");
|
||||
|
||||
b.Property<string>("posTypeOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id ประเภทตำแหน่ง old");
|
||||
|
||||
b.Property<string>("position")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
|
||||
b.Property<string>("positionField")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สายงาน");
|
||||
|
|
@ -12795,9 +12899,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id ตำแหน่ง");
|
||||
|
||||
b.Property<string>("positionName")
|
||||
b.Property<string>("positionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน old");
|
||||
|
||||
b.Property<string>("posmasterId")
|
||||
.HasColumnType("longtext")
|
||||
|
|
@ -12819,10 +12923,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root old");
|
||||
|
||||
b.Property<string>("rootOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root old");
|
||||
|
||||
b.Property<string>("rootShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน root old");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AvatarId");
|
||||
|
|
@ -13227,6 +13343,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ส่งตัวกลับไป");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
|
@ -13239,6 +13359,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -13952,9 +14076,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(50)")
|
||||
.HasComment("คำนำหน้านาม");
|
||||
|
||||
b.Property<Guid>("ReceiveUserId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid>("RetirementDeceasedId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
|
|
@ -13962,8 +14083,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasIndex("DocumentId");
|
||||
|
||||
b.HasIndex("ReceiveUserId");
|
||||
|
||||
b.HasIndex("RetirementDeceasedId");
|
||||
|
||||
b.ToTable("RetirementDeceasedNotis");
|
||||
|
|
@ -14235,6 +14354,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่พ้นจากราชการทหาร");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
|
@ -14251,6 +14374,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -14504,6 +14631,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ให้ออกไป");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
|
@ -14516,6 +14647,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -16662,15 +16797,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("PlacementType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType")
|
||||
.WithMany()
|
||||
.HasForeignKey("CommandTypeId");
|
||||
|
||||
b.Navigation("CommandType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document")
|
||||
|
|
@ -17115,12 +17241,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.WithMany()
|
||||
.HasForeignKey("DocumentId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "ReceiveUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReceiveUserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased")
|
||||
.WithMany("RetirementDeceasedNotis")
|
||||
.HasForeignKey("RetirementDeceasedId")
|
||||
|
|
@ -17129,8 +17249,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.Navigation("Document");
|
||||
|
||||
b.Navigation("ReceiveUser");
|
||||
|
||||
b.Navigation("RetirementDeceased");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue