ยกเลิกลูกจ้าง
Some checks failed
release-dev / release-dev (push) Failing after 13s

This commit is contained in:
moss 2025-05-27 19:48:38 +07:00
parent 28f8971e7f
commit 4b43104400
11 changed files with 22046 additions and 8 deletions

View file

@ -0,0 +1,109 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class update_table_retirementresignemp_add_group : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ApproveStep",
table: "RetirementResignEmployeeCancels",
type: "longtext",
nullable: true,
comment: "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Group",
table: "RetirementResignEmployeeCancels",
type: "longtext",
nullable: true,
comment: "คนยื่นมาอยู่ในกลุ่ม")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Org",
table: "RetirementResignEmployeeCancelApprovers",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "RejectDate",
table: "RetirementResignEmployeeCancelApprovers",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ApproveStep",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Group",
table: "RetirementResignCancels",
type: "longtext",
nullable: true,
comment: "คนยื่นมาอยู่ในกลุ่ม")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Org",
table: "RetirementResignCancelApprovers",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "RejectDate",
table: "RetirementResignCancelApprovers",
type: "datetime(6)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ApproveStep",
table: "RetirementResignEmployeeCancels");
migrationBuilder.DropColumn(
name: "Group",
table: "RetirementResignEmployeeCancels");
migrationBuilder.DropColumn(
name: "Org",
table: "RetirementResignEmployeeCancelApprovers");
migrationBuilder.DropColumn(
name: "RejectDate",
table: "RetirementResignEmployeeCancelApprovers");
migrationBuilder.DropColumn(
name: "ApproveStep",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "Group",
table: "RetirementResignCancels");
migrationBuilder.DropColumn(
name: "Org",
table: "RetirementResignCancelApprovers");
migrationBuilder.DropColumn(
name: "RejectDate",
table: "RetirementResignCancelApprovers");
}
}
}

View file

@ -17221,6 +17221,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("เหตุผลอนุมัติ");
b.Property<string>("ApproveStep")
.HasColumnType("longtext")
.HasComment("step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ");
b.Property<string>("CancelReason")
.HasColumnType("longtext")
.HasComment("เหตุผลยกเลิก");
@ -17260,6 +17264,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<string>("Group")
.HasColumnType("longtext")
.HasComment("คนยื่นมาอยู่ในกลุ่ม");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)")
.HasComment("สถานะการใช้งาน");
@ -17562,6 +17570,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property<string>("Org")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("PositionName")
.IsRequired()
.HasColumnType("longtext");
@ -17573,6 +17585,9 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Property<Guid>("ProfileId")
.HasColumnType("char(36)");
b.Property<DateTime?>("RejectDate")
.HasColumnType("datetime(6)");
b.Property<Guid>("RetirementResignCancelId")
.HasColumnType("char(36)");
@ -18151,6 +18166,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("เหตุผลอนุมัติ");
b.Property<string>("ApproveStep")
.HasColumnType("longtext")
.HasComment("step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ ");
b.Property<string>("CancelReason")
.HasColumnType("longtext")
.HasComment("เหตุผลยกเลิก");
@ -18190,6 +18209,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<string>("Group")
.HasColumnType("longtext")
.HasComment("คนยื่นมาอยู่ในกลุ่ม");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)")
.HasComment("สถานะการใช้งาน");
@ -18488,6 +18511,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property<string>("Org")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("PositionName")
.IsRequired()
.HasColumnType("longtext");
@ -18499,6 +18526,9 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Property<Guid>("ProfileId")
.HasColumnType("char(36)");
b.Property<DateTime?>("RejectDate")
.HasColumnType("datetime(6)");
b.Property<Guid>("RetirementResignEmployeeCancelId")
.HasColumnType("char(36)");