แก้ api ลา
This commit is contained in:
parent
d08b4ca723
commit
4822110533
20 changed files with 20695 additions and 2783 deletions
19178
BMA.EHR.Infrastructure/Migrations/20241118093933_update table insignia add rootid.Designer.cs
generated
Normal file
19178
BMA.EHR.Infrastructure/Migrations/20241118093933_update table insignia add rootid.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,97 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableinsigniaaddrootid : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Root",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "RootId",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Root",
|
||||
table: "InsigniaNoteProfiles",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "RootId",
|
||||
table: "InsigniaNoteProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BorrowOrganization",
|
||||
table: "InsigniaManageProfiles",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ReturnOrganization",
|
||||
table: "InsigniaManageProfiles",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Organization",
|
||||
table: "InsigniaManageOrganiations",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "รหัสหน่วยงาน")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Root",
|
||||
table: "InsigniaRequestProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RootId",
|
||||
table: "InsigniaRequestProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Root",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RootId",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BorrowOrganization",
|
||||
table: "InsigniaManageProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReturnOrganization",
|
||||
table: "InsigniaManageProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Organization",
|
||||
table: "InsigniaManageOrganiations");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5763,6 +5763,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("Organization")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("รหัสหน่วยงาน");
|
||||
|
||||
b.Property<Guid>("OrganizationId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("รหัสหน่วยงาน");
|
||||
|
|
@ -5791,6 +5795,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ยืมวันที่");
|
||||
|
||||
b.Property<string>("BorrowOrganization")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<Guid?>("BorrowOrganizationId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("Fk Table OrganizationOrganization Borrow");
|
||||
|
|
@ -5843,6 +5850,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("คืนวันที่");
|
||||
|
||||
b.Property<string>("ReturnOrganization")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<Guid?>("ReturnOrganizationId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("Fk Table OrganizationOrganization Return");
|
||||
|
|
@ -6153,6 +6163,12 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid>("RequestInsigniaId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Root")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<Guid?>("RootId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<double?>("Salary")
|
||||
.HasColumnType("double");
|
||||
|
||||
|
|
@ -6497,6 +6513,12 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid>("RequestInsigniaId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Root")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<Guid?>("RootId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<double?>("Salary")
|
||||
.HasColumnType("double");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue