migrate db ประวัติตำแหน่ง
This commit is contained in:
parent
eab1371eb1
commit
b99330e94b
4 changed files with 17161 additions and 0 deletions
|
|
@ -66,5 +66,23 @@ namespace BMA.EHR.Domain.Models.HR
|
||||||
public bool IsActive { get; set; } = true;
|
public bool IsActive { get; set; } = true;
|
||||||
[Comment("เอกสารอ้างอิง (เลขที่คำสั่ง)")]
|
[Comment("เอกสารอ้างอิง (เลขที่คำสั่ง)")]
|
||||||
public string? RefCommandNo { get; set; }
|
public string? RefCommandNo { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[Comment("OrgName")]
|
||||||
|
public string? OrgName { get; set; }
|
||||||
|
[Comment("AgencyName")]
|
||||||
|
public string? AgencyName { get; set; }
|
||||||
|
[Comment("PosNoName")]
|
||||||
|
public string? PosNoName { get; set; }
|
||||||
|
[Comment("PositionName")]
|
||||||
|
public string? PositionName { get; set; }
|
||||||
|
[Comment("PositionLineName")]
|
||||||
|
public string? PositionLineName { get; set; }
|
||||||
|
[Comment("CLevel")]
|
||||||
|
public string? CLevel { get; set; }
|
||||||
|
[Comment("PositionPathSideName")]
|
||||||
|
public string? PositionPathSideName { get; set; }
|
||||||
|
[Comment("PositionExecutiveName")]
|
||||||
|
public string? PositionExecutiveName { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16997
BMA.EHR.Infrastructure/Migrations/20240205045505_update table profile add nameoc.Designer.cs
generated
Normal file
16997
BMA.EHR.Infrastructure/Migrations/20240205045505_update table profile add nameoc.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,114 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace BMA.EHR.Infrastructure.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class updatetableprofileaddnameoc : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "AgencyName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "AgencyName")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "CLevel",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "CLevel")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "OrgName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "OrgName")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "PosNoName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "PosNoName")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "PositionExecutiveName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "PositionExecutiveName")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "PositionLineName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "PositionLineName")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "PositionName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "PositionName")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "PositionPathSideName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true,
|
||||||
|
comment: "PositionPathSideName")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "AgencyName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CLevel",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "OrgName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PosNoName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PositionExecutiveName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PositionLineName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PositionName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PositionPathSideName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -4749,10 +4749,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasComment("PrimaryKey")
|
.HasComment("PrimaryKey")
|
||||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||||
|
|
||||||
|
b.Property<string>("AgencyName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("AgencyName");
|
||||||
|
|
||||||
b.Property<double?>("Amount")
|
b.Property<double?>("Amount")
|
||||||
.HasColumnType("double")
|
.HasColumnType("double")
|
||||||
.HasComment("เงินเดือน");
|
.HasComment("เงินเดือน");
|
||||||
|
|
||||||
|
b.Property<string>("CLevel")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("CLevel");
|
||||||
|
|
||||||
b.Property<string>("CommandNo")
|
b.Property<string>("CommandNo")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("longtext")
|
.HasColumnType("longtext")
|
||||||
|
|
@ -4820,6 +4828,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("ลำดับ");
|
.HasComment("ลำดับ");
|
||||||
|
|
||||||
|
b.Property<string>("OrgName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("OrgName");
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationShortNameId")
|
b.Property<Guid?>("OrganizationShortNameId")
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasComment("Id ชื่อย่อหน่วยงาน");
|
.HasComment("Id ชื่อย่อหน่วยงาน");
|
||||||
|
|
@ -4832,6 +4844,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasComment("Id เลขที่ตำแหน่ง");
|
.HasComment("Id เลขที่ตำแหน่ง");
|
||||||
|
|
||||||
|
b.Property<string>("PosNoName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("PosNoName");
|
||||||
|
|
||||||
b.Property<Guid?>("PositionEmployeeGroupId")
|
b.Property<Guid?>("PositionEmployeeGroupId")
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasComment("Id กลุ่มงาน");
|
.HasComment("Id กลุ่มงาน");
|
||||||
|
|
@ -4852,6 +4868,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasComment("Id ตำแหน่งทางการบริหาร");
|
.HasComment("Id ตำแหน่งทางการบริหาร");
|
||||||
|
|
||||||
|
b.Property<string>("PositionExecutiveName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("PositionExecutiveName");
|
||||||
|
|
||||||
b.Property<Guid?>("PositionExecutiveSideId")
|
b.Property<Guid?>("PositionExecutiveSideId")
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasComment("Id ด้านทางการบริหาร");
|
.HasComment("Id ด้านทางการบริหาร");
|
||||||
|
|
@ -4867,10 +4887,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasComment("Id สายงาน");
|
.HasComment("Id สายงาน");
|
||||||
|
|
||||||
|
b.Property<string>("PositionLineName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("PositionLineName");
|
||||||
|
|
||||||
|
b.Property<string>("PositionName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("PositionName");
|
||||||
|
|
||||||
b.Property<Guid?>("PositionPathSideId")
|
b.Property<Guid?>("PositionPathSideId")
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasComment("Id ด้าน/สาขา");
|
.HasComment("Id ด้าน/สาขา");
|
||||||
|
|
||||||
|
b.Property<string>("PositionPathSideName")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("PositionPathSideName");
|
||||||
|
|
||||||
b.Property<double?>("PositionSalaryAmount")
|
b.Property<double?>("PositionSalaryAmount")
|
||||||
.HasColumnType("double")
|
.HasColumnType("double")
|
||||||
.HasComment("เงินประจำตำแหน่ง");
|
.HasComment("เงินประจำตำแหน่ง");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue