no message

This commit is contained in:
Kittapath 2024-05-23 17:07:55 +07:00
parent 63b02dcc4c
commit afe16503ee
17 changed files with 36169 additions and 139 deletions

View file

@ -0,0 +1,65 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableRetirementResignsaddOfficerReject : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "OfficerApproveReason",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "เหตุผลอนุมัติการเจ้าหน้าที่")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<bool>(
name: "OfficerReject",
table: "RetirementResigns",
type: "tinyint(1)",
nullable: true,
comment: "สถานะยับยั้งการเจ้าหน้าที่");
migrationBuilder.AddColumn<DateTime>(
name: "OfficerRejectDate",
table: "RetirementResigns",
type: "datetime(6)",
nullable: true,
comment: "วันที่ยับยั้งการเจ้าหน้าที่");
migrationBuilder.AddColumn<string>(
name: "OfficerRejectReason",
table: "RetirementResigns",
type: "longtext",
nullable: true,
comment: "เหตุผลยับยั้งการเจ้าหน้าที่")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "OfficerApproveReason",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "OfficerReject",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "OfficerRejectDate",
table: "RetirementResigns");
migrationBuilder.DropColumn(
name: "OfficerRejectReason",
table: "RetirementResigns");
}
}
}

View file

@ -0,0 +1,191 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablePlacementReceiveaddgender : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_PlacementReceives_BloodGroups_BloodGroupId",
table: "PlacementReceives");
migrationBuilder.DropForeignKey(
name: "FK_PlacementReceives_Genders_GenderId",
table: "PlacementReceives");
migrationBuilder.DropForeignKey(
name: "FK_PlacementReceives_Relationships_RelationshipId",
table: "PlacementReceives");
migrationBuilder.DropForeignKey(
name: "FK_PlacementReceives_Religions_ReligionId",
table: "PlacementReceives");
migrationBuilder.DropIndex(
name: "IX_PlacementReceives_BloodGroupId",
table: "PlacementReceives");
migrationBuilder.DropIndex(
name: "IX_PlacementReceives_GenderId",
table: "PlacementReceives");
migrationBuilder.DropIndex(
name: "IX_PlacementReceives_RelationshipId",
table: "PlacementReceives");
migrationBuilder.DropIndex(
name: "IX_PlacementReceives_ReligionId",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "BloodGroupId",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "GenderId",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "RelationshipId",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "ReligionId",
table: "PlacementReceives");
migrationBuilder.AddColumn<string>(
name: "BloodGroup",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "Id กลุ่มเลือด")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Gender",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "Id เพศ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Relationship",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "Id สถานะภาพ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Religion",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "Id ศาสนา")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BloodGroup",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "Gender",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "Relationship",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "Religion",
table: "PlacementReceives");
migrationBuilder.AddColumn<Guid>(
name: "BloodGroupId",
table: "PlacementReceives",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "GenderId",
table: "PlacementReceives",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "RelationshipId",
table: "PlacementReceives",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "ReligionId",
table: "PlacementReceives",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
migrationBuilder.CreateIndex(
name: "IX_PlacementReceives_BloodGroupId",
table: "PlacementReceives",
column: "BloodGroupId");
migrationBuilder.CreateIndex(
name: "IX_PlacementReceives_GenderId",
table: "PlacementReceives",
column: "GenderId");
migrationBuilder.CreateIndex(
name: "IX_PlacementReceives_RelationshipId",
table: "PlacementReceives",
column: "RelationshipId");
migrationBuilder.CreateIndex(
name: "IX_PlacementReceives_ReligionId",
table: "PlacementReceives",
column: "ReligionId");
migrationBuilder.AddForeignKey(
name: "FK_PlacementReceives_BloodGroups_BloodGroupId",
table: "PlacementReceives",
column: "BloodGroupId",
principalTable: "BloodGroups",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementReceives_Genders_GenderId",
table: "PlacementReceives",
column: "GenderId",
principalTable: "Genders",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementReceives_Relationships_RelationshipId",
table: "PlacementReceives",
column: "RelationshipId",
principalTable: "Relationships",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_PlacementReceives_Religions_ReligionId",
table: "PlacementReceives",
column: "ReligionId",
principalTable: "Religions",
principalColumn: "Id");
}
}
}

View file

@ -12594,8 +12594,9 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Property<Guid?>("AvatarId")
.HasColumnType("char(36)");
b.Property<Guid?>("BloodGroupId")
.HasColumnType("char(36)");
b.Property<string>("BloodGroup")
.HasColumnType("longtext")
.HasComment("Id กลุ่มเลือด");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)")
@ -12625,8 +12626,9 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("วุฒิ/สาขาเดิม");
b.Property<Guid?>("GenderId")
.HasColumnType("char(36)");
b.Property<string>("Gender")
.HasColumnType("longtext")
.HasComment("Id เพศ");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)")
@ -12689,11 +12691,13 @@ 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?>("ReligionId")
.HasColumnType("char(36)");
b.Property<string>("Religion")
.HasColumnType("longtext")
.HasComment("Id ศาสนา");
b.Property<DateTime?>("ReportingDate")
.HasColumnType("datetime(6)")
@ -12921,14 +12925,6 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("AvatarId");
b.HasIndex("BloodGroupId");
b.HasIndex("GenderId");
b.HasIndex("RelationshipId");
b.HasIndex("ReligionId");
b.ToTable("PlacementReceives");
});
@ -15554,6 +15550,22 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("สถานที่ยื่นขอลาออกราชการ");
b.Property<string>("OfficerApproveReason")
.HasColumnType("longtext")
.HasComment("เหตุผลอนุมัติการเจ้าหน้าที่");
b.Property<bool?>("OfficerReject")
.HasColumnType("tinyint(1)")
.HasComment("สถานะยับยั้งการเจ้าหน้าที่");
b.Property<DateTime?>("OfficerRejectDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่ยับยั้งการเจ้าหน้าที่");
b.Property<string>("OfficerRejectReason")
.HasColumnType("longtext")
.HasComment("เหตุผลยับยั้งการเจ้าหน้าที่");
b.Property<string>("OligarchApproveReason")
.HasColumnType("longtext")
.HasComment("เหตุผลอนุมัติผู้ดูแล");
@ -17210,31 +17222,7 @@ namespace BMA.EHR.Infrastructure.Migrations
.WithMany()
.HasForeignKey("AvatarId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup")
.WithMany()
.HasForeignKey("BloodGroupId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Gender", "Gender")
.WithMany()
.HasForeignKey("GenderId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship")
.WithMany()
.HasForeignKey("RelationshipId");
b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion")
.WithMany()
.HasForeignKey("ReligionId");
b.Navigation("Avatar");
b.Navigation("BloodGroup");
b.Navigation("Gender");
b.Navigation("Relationship");
b.Navigation("Religion");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc", b =>