แก้ออกคำสั่ง
This commit is contained in:
parent
ad70e8164c
commit
564a23988d
17 changed files with 77109 additions and 252 deletions
19171
BMA.EHR.Infrastructure/Migrations/20241227172519_update table placementprofile delete poscandidate.Designer.cs
generated
Normal file
19171
BMA.EHR.Infrastructure/Migrations/20241227172519_update table placementprofile delete poscandidate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,261 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableplacementprofiledeleteposcandidate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementEducations_EducationLevels_EducationLevelId",
|
||||
table: "PlacementEducations");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementProfiles_OrganizationPositions_OrganizationPosition~",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionLines_PositionLineId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionNumbers_PositionNumberId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionPathSides_PositionPathSideId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionPaths_PositionCandidateId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionPaths_PositionPathId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementProfiles_OrganizationPositionId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementProfiles_PositionCandidateId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementProfiles_PositionLineId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementProfiles_PositionNumberId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementProfiles_PositionPathId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementProfiles_PositionPathSideId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_PlacementEducations_EducationLevelId",
|
||||
table: "PlacementEducations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationPositionId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionCandidateId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionLineId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionNumberId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionPathId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionPathSideId",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "EducationLevelId",
|
||||
table: "PlacementEducations",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
comment: "Idวุฒิที่ได้รับ",
|
||||
collation: "ascii_general_ci",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "char(36)",
|
||||
oldNullable: true)
|
||||
.OldAnnotation("Relational:Collation", "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EducationLevelName",
|
||||
table: "PlacementEducations",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "วุฒิที่ได้รับ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EducationLevelName",
|
||||
table: "PlacementEducations");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "OrganizationPositionId",
|
||||
table: "PlacementProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionCandidateId",
|
||||
table: "PlacementProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionLineId",
|
||||
table: "PlacementProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionNumberId",
|
||||
table: "PlacementProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionPathId",
|
||||
table: "PlacementProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PositionPathSideId",
|
||||
table: "PlacementProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "EducationLevelId",
|
||||
table: "PlacementEducations",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci",
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "char(36)",
|
||||
oldNullable: true,
|
||||
oldComment: "Idวุฒิที่ได้รับ")
|
||||
.OldAnnotation("Relational:Collation", "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfiles_OrganizationPositionId",
|
||||
table: "PlacementProfiles",
|
||||
column: "OrganizationPositionId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfiles_PositionCandidateId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionCandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfiles_PositionLineId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionLineId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfiles_PositionNumberId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionNumberId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfiles_PositionPathId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionPathId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfiles_PositionPathSideId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionPathSideId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementEducations_EducationLevelId",
|
||||
table: "PlacementEducations",
|
||||
column: "EducationLevelId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementEducations_EducationLevels_EducationLevelId",
|
||||
table: "PlacementEducations",
|
||||
column: "EducationLevelId",
|
||||
principalTable: "EducationLevels",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementProfiles_OrganizationPositions_OrganizationPosition~",
|
||||
table: "PlacementProfiles",
|
||||
column: "OrganizationPositionId",
|
||||
principalTable: "OrganizationPositions",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionLines_PositionLineId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionLineId",
|
||||
principalTable: "PositionLines",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionNumbers_PositionNumberId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionNumberId",
|
||||
principalTable: "PositionNumbers",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionPathSides_PositionPathSideId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionPathSideId",
|
||||
principalTable: "PositionPathSides",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionPaths_PositionCandidateId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionCandidateId",
|
||||
principalTable: "PositionPaths",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlacementProfiles_PositionPaths_PositionPathId",
|
||||
table: "PlacementProfiles",
|
||||
column: "PositionPathId",
|
||||
principalTable: "PositionPaths",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
19175
BMA.EHR.Infrastructure/Migrations/20241228140037_update table placementprofile add poscandidate.Designer.cs
generated
Normal file
19175
BMA.EHR.Infrastructure/Migrations/20241228140037_update table placementprofile add poscandidate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,30 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableplacementprofileaddposcandidate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PositionCandidate",
|
||||
table: "PlacementProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งสอบ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PositionCandidate",
|
||||
table: "PlacementProfiles");
|
||||
}
|
||||
}
|
||||
}
|
||||
19175
BMA.EHR.Infrastructure/Migrations/20241229132317_update table placement add refId.Designer.cs
generated
Normal file
19175
BMA.EHR.Infrastructure/Migrations/20241229132317_update table placement add refId.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableplacementaddrefId : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
19179
BMA.EHR.Infrastructure/Migrations/20241230154038_update table placement add refIds.Designer.cs
generated
Normal file
19179
BMA.EHR.Infrastructure/Migrations/20241230154038_update table placement add refIds.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableplacementaddrefIds : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "RefId",
|
||||
table: "Placements",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
comment: "Id การสอบ",
|
||||
collation: "ascii_general_ci");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RefId",
|
||||
table: "Placements");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11245,6 +11245,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid>("PlacementTypeId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("RefId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("Id การสอบ");
|
||||
|
||||
b.Property<string>("Round")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
|
|
@ -11786,7 +11790,12 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasComment("ระยะเวลาหลักสูตร");
|
||||
|
||||
b.Property<Guid?>("EducationLevelId")
|
||||
.HasColumnType("char(36)");
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("Idวุฒิที่ได้รับ");
|
||||
|
||||
b.Property<string>("EducationLevelName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("วุฒิที่ได้รับ");
|
||||
|
||||
b.Property<DateTime?>("EndDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
|
|
@ -11860,8 +11869,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EducationLevelId");
|
||||
|
||||
b.HasIndex("PlacementProfileId");
|
||||
|
||||
b.HasIndex("PositionPathId");
|
||||
|
|
@ -12409,9 +12416,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(20)")
|
||||
.HasComment("โทรศัพท์ บริษัท");
|
||||
|
||||
b.Property<Guid?>("OrganizationPositionId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Pass")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ผลสมัครสอบ");
|
||||
|
|
@ -12456,25 +12460,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่ง");
|
||||
|
||||
b.Property<Guid?>("PositionCandidateId")
|
||||
.HasColumnType("char(36)");
|
||||
b.Property<string>("PositionCandidate")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งสอบ");
|
||||
|
||||
b.Property<string>("PositionLevel")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ระดับ");
|
||||
|
||||
b.Property<Guid?>("PositionLineId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionNumberId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionPathId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionPathSideId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<double?>("PositionSalaryAmount")
|
||||
.HasColumnType("double")
|
||||
.HasComment("เงินประจำตำแหน่ง");
|
||||
|
|
@ -12802,20 +12795,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("OrganizationPositionId");
|
||||
|
||||
b.HasIndex("PlacementId");
|
||||
|
||||
b.HasIndex("PositionCandidateId");
|
||||
|
||||
b.HasIndex("PositionLineId");
|
||||
|
||||
b.HasIndex("PositionNumberId");
|
||||
|
||||
b.HasIndex("PositionPathId");
|
||||
|
||||
b.HasIndex("PositionPathSideId");
|
||||
|
||||
b.HasIndex("ProfileImgId");
|
||||
|
||||
b.HasIndex("ReliefDocId");
|
||||
|
|
@ -18471,10 +18452,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.EducationLevel", "EducationLevel")
|
||||
.WithMany()
|
||||
.HasForeignKey("EducationLevelId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile")
|
||||
.WithMany("PlacementEducations")
|
||||
.HasForeignKey("PlacementProfileId")
|
||||
|
|
@ -18485,8 +18462,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.WithMany()
|
||||
.HasForeignKey("PositionPathId");
|
||||
|
||||
b.Navigation("EducationLevel");
|
||||
|
||||
b.Navigation("PlacementProfile");
|
||||
|
||||
b.Navigation("PositionPath");
|
||||
|
|
@ -18494,34 +18469,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition")
|
||||
.WithMany()
|
||||
.HasForeignKey("OrganizationPositionId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement")
|
||||
.WithMany("PlacementProfiles")
|
||||
.HasForeignKey("PlacementId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionCandidate")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionCandidateId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionLineId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionNumberId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionPathId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionPathSideId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ProfileImg")
|
||||
.WithMany()
|
||||
.HasForeignKey("ProfileImgId");
|
||||
|
|
@ -18530,20 +18481,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.WithMany()
|
||||
.HasForeignKey("ReliefDocId");
|
||||
|
||||
b.Navigation("OrganizationPosition");
|
||||
|
||||
b.Navigation("Placement");
|
||||
|
||||
b.Navigation("PositionCandidate");
|
||||
|
||||
b.Navigation("PositionLine");
|
||||
|
||||
b.Navigation("PositionNumber");
|
||||
|
||||
b.Navigation("PositionPath");
|
||||
|
||||
b.Navigation("PositionPathSide");
|
||||
|
||||
b.Navigation("ProfileImg");
|
||||
|
||||
b.Navigation("ReliefDoc");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue