แก้บรรจุ

This commit is contained in:
Kittapath 2024-05-16 17:00:47 +07:00
parent 7876063288
commit 94c43e5479
11 changed files with 18442 additions and 428 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,715 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableplacementAddprefix : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_BloodGroups_BloodGroupId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Districts_CitizenDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Districts_CurrentDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Districts_RegistDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Genders_GenderId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Prefixes_FatherPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Prefixes_MarryPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Prefixes_MotherPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Prefixes_PrefixId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Provinces_CitizenProvinceId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Provinces_CurrentProvinceId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Provinces_RegistProvinceId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Relationships_RelationshipId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_Religions_ReligionId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_SubDistricts_CurrentSubDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropForeignKey(
name: "FK_PlacementProfiles_SubDistricts_RegistSubDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_BloodGroupId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_CitizenDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_CitizenProvinceId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_CurrentDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_CurrentProvinceId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_CurrentSubDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_FatherPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_GenderId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_MarryPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_MotherPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_PrefixId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_RegistDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_RegistProvinceId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_RegistSubDistrictId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_RelationshipId",
table: "PlacementProfiles");
migrationBuilder.DropIndex(
name: "IX_PlacementProfiles_ReligionId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "BloodGroupId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "FatherPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "GenderId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "MarryPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "MotherPrefixId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "PrefixId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "RelationshipId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "ReligionId",
table: "PlacementProfiles");
migrationBuilder.AlterColumn<string>(
name: "RegistSubDistrictId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id ตำบลที่อยู่ตามทะเบียนบ้าน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "RegistProvinceId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id จังหวัดที่อยู่ตามทะเบียนบ้าน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "RegistDistrictId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id อำเภอที่อยู่ตามทะเบียนบ้าน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "CurrentSubDistrictId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id ตำบลที่อยู่ปัจจุบัน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "CurrentProvinceId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id จังหวัดที่อยู่ปัจจุบัน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "CurrentDistrictId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id อำเภอที่อยู่ปัจจุบัน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "CitizenProvinceId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id จังหวัดที่ออกบัตรประชาชน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<string>(
name: "CitizenDistrictId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id เขตที่ออกบัตรประชาชน",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AddColumn<string>(
name: "BloodGroup",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id กลุ่มเลือด")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "FatherPrefix",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id คำนำหน้าชื่อบิดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Gender",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id เพศ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "MarryPrefix",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id คำนำหน้าชื่อคู่สมรส")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "MotherPrefix",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id คำนำหน้าชื่อมารดา")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Prefix",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id คำนำหน้า")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Relationship",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id สถานภาพ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Religion",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "Id ศาสนา")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BloodGroup",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "FatherPrefix",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "Gender",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "MarryPrefix",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "MotherPrefix",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "Prefix",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "Relationship",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "Religion",
table: "PlacementProfiles");
migrationBuilder.AlterColumn<Guid>(
name: "RegistSubDistrictId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id ตำบลที่อยู่ตามทะเบียนบ้าน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<Guid>(
name: "RegistProvinceId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id จังหวัดที่อยู่ตามทะเบียนบ้าน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<Guid>(
name: "RegistDistrictId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id อำเภอที่อยู่ตามทะเบียนบ้าน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<Guid>(
name: "CurrentSubDistrictId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id ตำบลที่อยู่ปัจจุบัน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<Guid>(
name: "CurrentProvinceId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id จังหวัดที่อยู่ปัจจุบัน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<Guid>(
name: "CurrentDistrictId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id อำเภอที่อยู่ปัจจุบัน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<Guid>(
name: "CitizenProvinceId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id จังหวัดที่ออกบัตรประชาชน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<Guid>(
name: "CitizenDistrictId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "Id เขตที่ออกบัตรประชาชน")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<Guid>(
name: "BloodGroupId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "FatherPrefixId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "GenderId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "MarryPrefixId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "MotherPrefixId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "PrefixId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "RelationshipId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "ReligionId",
table: "PlacementProfiles",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_BloodGroupId",
table: "PlacementProfiles",
column: "BloodGroupId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_CitizenDistrictId",
table: "PlacementProfiles",
column: "CitizenDistrictId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_CitizenProvinceId",
table: "PlacementProfiles",
column: "CitizenProvinceId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_CurrentDistrictId",
table: "PlacementProfiles",
column: "CurrentDistrictId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_CurrentProvinceId",
table: "PlacementProfiles",
column: "CurrentProvinceId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_CurrentSubDistrictId",
table: "PlacementProfiles",
column: "CurrentSubDistrictId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_FatherPrefixId",
table: "PlacementProfiles",
column: "FatherPrefixId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_GenderId",
table: "PlacementProfiles",
column: "GenderId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_MarryPrefixId",
table: "PlacementProfiles",
column: "MarryPrefixId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_MotherPrefixId",
table: "PlacementProfiles",
column: "MotherPrefixId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_PrefixId",
table: "PlacementProfiles",
column: "PrefixId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_RegistDistrictId",
table: "PlacementProfiles",
column: "RegistDistrictId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_RegistProvinceId",
table: "PlacementProfiles",
column: "RegistProvinceId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_RegistSubDistrictId",
table: "PlacementProfiles",
column: "RegistSubDistrictId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_RelationshipId",
table: "PlacementProfiles",
column: "RelationshipId");
migrationBuilder.CreateIndex(
name: "IX_PlacementProfiles_ReligionId",
table: "PlacementProfiles",
column: "ReligionId");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_BloodGroups_BloodGroupId",
table: "PlacementProfiles",
column: "BloodGroupId",
principalTable: "BloodGroups",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Districts_CitizenDistrictId",
table: "PlacementProfiles",
column: "CitizenDistrictId",
principalTable: "Districts",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Districts_CurrentDistrictId",
table: "PlacementProfiles",
column: "CurrentDistrictId",
principalTable: "Districts",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Districts_RegistDistrictId",
table: "PlacementProfiles",
column: "RegistDistrictId",
principalTable: "Districts",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Genders_GenderId",
table: "PlacementProfiles",
column: "GenderId",
principalTable: "Genders",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Prefixes_FatherPrefixId",
table: "PlacementProfiles",
column: "FatherPrefixId",
principalTable: "Prefixes",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Prefixes_MarryPrefixId",
table: "PlacementProfiles",
column: "MarryPrefixId",
principalTable: "Prefixes",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Prefixes_MotherPrefixId",
table: "PlacementProfiles",
column: "MotherPrefixId",
principalTable: "Prefixes",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Prefixes_PrefixId",
table: "PlacementProfiles",
column: "PrefixId",
principalTable: "Prefixes",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Provinces_CitizenProvinceId",
table: "PlacementProfiles",
column: "CitizenProvinceId",
principalTable: "Provinces",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Provinces_CurrentProvinceId",
table: "PlacementProfiles",
column: "CurrentProvinceId",
principalTable: "Provinces",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Provinces_RegistProvinceId",
table: "PlacementProfiles",
column: "RegistProvinceId",
principalTable: "Provinces",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Relationships_RelationshipId",
table: "PlacementProfiles",
column: "RelationshipId",
principalTable: "Relationships",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_Religions_ReligionId",
table: "PlacementProfiles",
column: "ReligionId",
principalTable: "Religions",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_SubDistricts_CurrentSubDistrictId",
table: "PlacementProfiles",
column: "CurrentSubDistrictId",
principalTable: "SubDistricts",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementProfiles_SubDistricts_RegistSubDistrictId",
table: "PlacementProfiles",
column: "RegistSubDistrictId",
principalTable: "SubDistricts",
principalColumn: "Id");
}
}
}

View file

@ -11957,23 +11957,26 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("double")
.HasComment("เงินเดือน");
b.Property<Guid?>("BloodGroupId")
.HasColumnType("char(36)");
b.Property<string>("BloodGroup")
.HasColumnType("longtext")
.HasComment("Id กลุ่มเลือด");
b.Property<DateTime?>("CitizenDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่ออกบัตร");
b.Property<Guid?>("CitizenDistrictId")
.HasColumnType("char(36)");
b.Property<string>("CitizenDistrictId")
.HasColumnType("longtext")
.HasComment("Id เขตที่ออกบัตรประชาชน");
b.Property<string>("CitizenId")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("เลขประจำตัวประชาชน");
b.Property<Guid?>("CitizenProvinceId")
.HasColumnType("char(36)");
b.Property<string>("CitizenProvinceId")
.HasColumnType("longtext")
.HasComment("Id จังหวัดที่ออกบัตรประชาชน");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)")
@ -11998,14 +12001,17 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ที่อยู่ปัจจุบัน");
b.Property<Guid?>("CurrentDistrictId")
.HasColumnType("char(36)");
b.Property<string>("CurrentDistrictId")
.HasColumnType("longtext")
.HasComment("Id อำเภอที่อยู่ปัจจุบัน");
b.Property<Guid?>("CurrentProvinceId")
.HasColumnType("char(36)");
b.Property<string>("CurrentProvinceId")
.HasColumnType("longtext")
.HasComment("Id จังหวัดที่อยู่ปัจจุบัน");
b.Property<Guid?>("CurrentSubDistrictId")
.HasColumnType("char(36)");
b.Property<string>("CurrentSubDistrictId")
.HasColumnType("longtext")
.HasComment("Id ตำบลที่อยู่ปัจจุบัน");
b.Property<string>("CurrentZipCode")
.HasMaxLength(10)
@ -12054,15 +12060,17 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(200)")
.HasComment("อาชีพบิดา");
b.Property<Guid?>("FatherPrefixId")
.HasColumnType("char(36)");
b.Property<string>("FatherPrefix")
.HasColumnType("longtext")
.HasComment("Id คำนำหน้าชื่อบิดา");
b.Property<string>("Firstname")
.HasColumnType("longtext")
.HasComment("ชื่อ");
b.Property<Guid?>("GenderId")
.HasColumnType("char(36)");
b.Property<string>("Gender")
.HasColumnType("longtext")
.HasComment("Id เพศ");
b.Property<bool?>("IsOfficer")
.HasColumnType("tinyint(1)")
@ -12127,8 +12135,9 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(200)")
.HasComment("อาชีพคู่สมรส");
b.Property<Guid?>("MarryPrefixId")
.HasColumnType("char(36)");
b.Property<string>("MarryPrefix")
.HasColumnType("longtext")
.HasComment("Id คำนำหน้าชื่อคู่สมรส");
b.Property<string>("MobilePhone")
.HasMaxLength(200)
@ -12155,8 +12164,9 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(200)")
.HasComment("อาชีพมารดา");
b.Property<Guid?>("MotherPrefixId")
.HasColumnType("char(36)");
b.Property<string>("MotherPrefix")
.HasColumnType("longtext")
.HasComment("Id คำนำหน้าชื่อมารดา");
b.Property<double?>("MouthSalaryAmount")
.HasColumnType("double")
@ -12268,8 +12278,9 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Property<Guid?>("PositionTypeId")
.HasColumnType("char(36)");
b.Property<Guid?>("PrefixId")
.HasColumnType("char(36)");
b.Property<string>("Prefix")
.HasColumnType("longtext")
.HasComment("Id คำนำหน้า");
b.Property<Guid?>("ProfileImgId")
.HasColumnType("char(36)");
@ -12287,18 +12298,21 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ที่อยู่ตามทะเบียนบ้าน");
b.Property<Guid?>("RegistDistrictId")
.HasColumnType("char(36)");
b.Property<string>("RegistDistrictId")
.HasColumnType("longtext")
.HasComment("Id อำเภอที่อยู่ตามทะเบียนบ้าน");
b.Property<Guid?>("RegistProvinceId")
.HasColumnType("char(36)");
b.Property<string>("RegistProvinceId")
.HasColumnType("longtext")
.HasComment("Id จังหวัดที่อยู่ตามทะเบียนบ้าน");
b.Property<bool?>("RegistSame")
.HasColumnType("tinyint(1)")
.HasComment("ที่อยู่ปัจจุบันเหมือนที่อยู่ตามทะเบียนบ้าน");
b.Property<Guid?>("RegistSubDistrictId")
.HasColumnType("char(36)");
b.Property<string>("RegistSubDistrictId")
.HasColumnType("longtext")
.HasComment("Id ตำบลที่อยู่ตามทะเบียนบ้าน");
b.Property<string>("RegistZipCode")
.HasMaxLength(10)
@ -12309,8 +12323,9 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("เหตุผลสละสิทธิ์");
b.Property<Guid?>("RelationshipId")
.HasColumnType("char(36)");
b.Property<string>("Relationship")
.HasColumnType("longtext")
.HasComment("Id สถานภาพ");
b.Property<Guid?>("ReliefDocId")
.HasColumnType("char(36)");
@ -12319,8 +12334,9 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("เหตุผลผ่อนผัน");
b.Property<Guid?>("ReligionId")
.HasColumnType("char(36)");
b.Property<string>("Religion")
.HasColumnType("longtext")
.HasComment("Id ศาสนา");
b.Property<string>("RemarkHorizontal")
.HasColumnType("longtext")
@ -12469,26 +12485,6 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.HasIndex("BloodGroupId");
b.HasIndex("CitizenDistrictId");
b.HasIndex("CitizenProvinceId");
b.HasIndex("CurrentDistrictId");
b.HasIndex("CurrentProvinceId");
b.HasIndex("CurrentSubDistrictId");
b.HasIndex("FatherPrefixId");
b.HasIndex("GenderId");
b.HasIndex("MarryPrefixId");
b.HasIndex("MotherPrefixId");
b.HasIndex("OrganizationPositionId");
b.HasIndex("PlacementId");
@ -12507,22 +12503,10 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionTypeId");
b.HasIndex("PrefixId");
b.HasIndex("ProfileImgId");
b.HasIndex("RegistDistrictId");
b.HasIndex("RegistProvinceId");
b.HasIndex("RegistSubDistrictId");
b.HasIndex("RelationshipId");
b.HasIndex("ReliefDocId");
b.HasIndex("ReligionId");
b.ToTable("PlacementProfiles");
});
@ -16844,46 +16828,6 @@ namespace BMA.EHR.Infrastructure.Migrations
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b =>
{
b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup")
.WithMany()
.HasForeignKey("BloodGroupId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "CitizenDistrict")
.WithMany()
.HasForeignKey("CitizenDistrictId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "CitizenProvince")
.WithMany()
.HasForeignKey("CitizenProvinceId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "CurrentDistrict")
.WithMany()
.HasForeignKey("CurrentDistrictId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "CurrentProvince")
.WithMany()
.HasForeignKey("CurrentProvinceId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.SubDistrict", "CurrentSubDistrict")
.WithMany()
.HasForeignKey("CurrentSubDistrictId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "FatherPrefix")
.WithMany()
.HasForeignKey("FatherPrefixId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender")
.WithMany()
.HasForeignKey("GenderId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "MarryPrefix")
.WithMany()
.HasForeignKey("MarryPrefixId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "MotherPrefix")
.WithMany()
.HasForeignKey("MotherPrefixId");
b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition")
.WithMany()
.HasForeignKey("OrganizationPositionId");
@ -16920,58 +16864,14 @@ namespace BMA.EHR.Infrastructure.Migrations
.WithMany()
.HasForeignKey("PositionTypeId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix")
.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");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "RegistProvince")
.WithMany()
.HasForeignKey("RegistProvinceId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.SubDistrict", "RegistSubDistrict")
.WithMany()
.HasForeignKey("RegistSubDistrictId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship")
.WithMany()
.HasForeignKey("RelationshipId");
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc")
.WithMany()
.HasForeignKey("ReliefDocId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion")
.WithMany()
.HasForeignKey("ReligionId");
b.Navigation("BloodGroup");
b.Navigation("CitizenDistrict");
b.Navigation("CitizenProvince");
b.Navigation("CurrentDistrict");
b.Navigation("CurrentProvince");
b.Navigation("CurrentSubDistrict");
b.Navigation("FatherPrefix");
b.Navigation("Gender");
b.Navigation("MarryPrefix");
b.Navigation("MotherPrefix");
b.Navigation("OrganizationPosition");
b.Navigation("Placement");
@ -16990,21 +16890,9 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Navigation("PositionType");
b.Navigation("Prefix");
b.Navigation("ProfileImg");
b.Navigation("RegistDistrict");
b.Navigation("RegistProvince");
b.Navigation("RegistSubDistrict");
b.Navigation("Relationship");
b.Navigation("ReliefDoc");
b.Navigation("Religion");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b =>