เพิ่มคำสั่งยกเลิกลา

This commit is contained in:
Kittapath 2024-07-18 20:37:17 +07:00
parent bcf0c0bfdb
commit 033fc915d0
12 changed files with 19309 additions and 88 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,41 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablecommandaddactdate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "ActEndDate",
table: "Commands",
type: "datetime(6)",
nullable: true,
comment: "วันที่สิ้นสุดการรักษาการแทน");
migrationBuilder.AddColumn<DateTime>(
name: "ActStartDate",
table: "Commands",
type: "datetime(6)",
nullable: true,
comment: "วันที่เริ่มรักษาการแทน");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ActEndDate",
table: "Commands");
migrationBuilder.DropColumn(
name: "ActStartDate",
table: "Commands");
}
}
}

View file

@ -28,6 +28,14 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property<DateTime?>("ActEndDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่สิ้นสุดการรักษาการแทน");
b.Property<DateTime?>("ActStartDate")
.HasColumnType("datetime(6)")
.HasComment("วันที่เริ่มรักษาการแทน");
b.Property<string>("AuthorizedPosition")
.IsRequired()
.HasColumnType("longtext")