report 1-4 เำิม่หมายเหตุแนวนอน
This commit is contained in:
parent
5530c2f9e4
commit
2da120f958
32 changed files with 51300 additions and 13 deletions
16494
BMA.EHR.Infrastructure/Migrations/20231007124656_add table placementProfileDocs.Designer.cs
generated
Normal file
16494
BMA.EHR.Infrastructure/Migrations/20231007124656_add table placementProfileDocs.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,170 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class addtableplacementProfileDocs : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_OrganizationOrganizations_OrgReceiveIns~",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_OrganizationOrganizations_OrgReturnInsi~",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "RemarkHorizontal",
|
||||
table: "RetirementResigns",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หมายเหตุแนวนอน")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "SignDate",
|
||||
table: "RetirementPeriods",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "ประกาศ ณ วันที่");
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "SignDate",
|
||||
table: "RetirementPeriodHistorys",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "ประกาศ ณ วันที่");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "RemarkHorizontal",
|
||||
table: "PlacementProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หมายเหตุแนวนอน")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "RemarkVertical",
|
||||
table: "PlacementProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หมายเหตุแนวตั้ง")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "PlacementProfileDocs",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"),
|
||||
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"),
|
||||
CreatedUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
LastUpdatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"),
|
||||
LastUpdateUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
CreatedFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
LastUpdateFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
DocumentId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
PlacementProfileId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_PlacementProfileDocs", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_PlacementProfileDocs_Documents_DocumentId",
|
||||
column: x => x.DocumentId,
|
||||
principalTable: "Documents",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_PlacementProfileDocs_PlacementProfiles_PlacementProfileId",
|
||||
column: x => x.PlacementProfileId,
|
||||
principalTable: "PlacementProfiles",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfileDocs_DocumentId",
|
||||
table: "PlacementProfileDocs",
|
||||
column: "DocumentId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PlacementProfileDocs_PlacementProfileId",
|
||||
table: "PlacementProfileDocs",
|
||||
column: "PlacementProfileId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_Organizations_OrgReceiveInsigniaId",
|
||||
table: "InsigniaNoteProfiles",
|
||||
column: "OrgReceiveInsigniaId",
|
||||
principalTable: "Organizations",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_Organizations_OrgReturnInsigniaId",
|
||||
table: "InsigniaNoteProfiles",
|
||||
column: "OrgReturnInsigniaId",
|
||||
principalTable: "Organizations",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_Organizations_OrgReceiveInsigniaId",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_Organizations_OrgReturnInsigniaId",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "PlacementProfileDocs");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RemarkHorizontal",
|
||||
table: "RetirementResigns");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SignDate",
|
||||
table: "RetirementPeriods");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SignDate",
|
||||
table: "RetirementPeriodHistorys");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RemarkHorizontal",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RemarkVertical",
|
||||
table: "PlacementProfiles");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_OrganizationOrganizations_OrgReceiveIns~",
|
||||
table: "InsigniaNoteProfiles",
|
||||
column: "OrgReceiveInsigniaId",
|
||||
principalTable: "OrganizationOrganizations",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_OrganizationOrganizations_OrgReturnInsi~",
|
||||
table: "InsigniaNoteProfiles",
|
||||
column: "OrgReturnInsigniaId",
|
||||
principalTable: "OrganizationOrganizations",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
16666
BMA.EHR.Infrastructure/Migrations/20231007181021_add table RetirementQuestionnaireQuestion.Designer.cs
generated
Normal file
16666
BMA.EHR.Infrastructure/Migrations/20231007181021_add table RetirementQuestionnaireQuestion.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,104 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class addtableRetirementQuestionnaireQuestion : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "RetirementQuestionnaireQuestions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"),
|
||||
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"),
|
||||
CreatedUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
LastUpdatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"),
|
||||
LastUpdateUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
CreatedFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
LastUpdateFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question1Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question1Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question1Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 1")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question2Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question2Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question2Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 2")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question3Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 3")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question3Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 3")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question3Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 3")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question4Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 4")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question4Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 4")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question4Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 4")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question5Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 5")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question5Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 5")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question5Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 5")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question6Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 6")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question6Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 6")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question6Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 6")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question7Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 7")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question7Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 7")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question7Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 7")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question8Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 8")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question8Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 8")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question8Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 8")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question9Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 9")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question9Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 9")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question9Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 9")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question10Desc = table.Column<string>(type: "longtext", nullable: true, comment: "คำถามข้อที่ 10")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question10Score = table.Column<string>(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 10")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Question10Answer = table.Column<string>(type: "longtext", nullable: true, comment: "กรอกคะแนน 10")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_RetirementQuestionnaireQuestions", x => x.Id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "RetirementQuestionnaireQuestions");
|
||||
}
|
||||
}
|
||||
}
|
||||
16714
BMA.EHR.Infrastructure/Migrations/20231007190852_add table RetirementQuestionnaireQuestion1.Designer.cs
generated
Normal file
16714
BMA.EHR.Infrastructure/Migrations/20231007190852_add table RetirementQuestionnaireQuestion1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,151 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class addtableRetirementQuestionnaireQuestion1 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Comment",
|
||||
table: "RetirementQuestions",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ความคิดเห็น")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score1",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 1");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score10",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 10");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score2",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 2");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score3",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 3");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score4",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score5",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 5");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score6",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 6");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score7",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 7");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score8",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 8");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Score9",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนข้อ 9");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ScoreTotal",
|
||||
table: "RetirementQuestions",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "คะแนนรวม");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Comment",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score1",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score10",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score2",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score3",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score4",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score5",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score6",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score7",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score8",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Score9",
|
||||
table: "RetirementQuestions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ScoreTotal",
|
||||
table: "RetirementQuestions");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11734,6 +11734,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid?>("ReligionId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("RemarkHorizontal")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("หมายเหตุแนวนอน");
|
||||
|
||||
b.Property<string>("RemarkVertical")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("หมายเหตุแนวตั้ง");
|
||||
|
||||
b.Property<DateTime?>("ReportingDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่รายงานตัว");
|
||||
|
|
@ -11810,6 +11818,68 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.ToTable("PlacementProfiles");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("char(36)")
|
||||
.HasColumnOrder(0)
|
||||
.HasComment("PrimaryKey")
|
||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
.HasComment("สร้างข้อมูลเมื่อ");
|
||||
|
||||
b.Property<string>("CreatedFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasColumnOrder(104)
|
||||
.HasComment("ชื่อ User ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("CreatedUserId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<Guid>("DocumentId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("LastUpdateFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasColumnOrder(105)
|
||||
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
|
||||
|
||||
b.Property<string>("LastUpdateUserId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasColumnOrder(103)
|
||||
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
|
||||
|
||||
b.Property<DateTime?>("LastUpdatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<Guid>("PlacementProfileId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("DocumentId");
|
||||
|
||||
b.HasIndex("PlacementProfileId");
|
||||
|
||||
b.ToTable("PlacementProfileDocs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
|
|
@ -13567,6 +13637,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("int")
|
||||
.HasComment("ครั้งที่");
|
||||
|
||||
b.Property<DateTime?>("SignDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ประกาศ ณ วันที่");
|
||||
|
||||
b.Property<string>("Type")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
|
|
@ -13654,6 +13728,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("int")
|
||||
.HasComment("ครั้งที่");
|
||||
|
||||
b.Property<DateTime?>("SignDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ประกาศ ณ วันที่");
|
||||
|
||||
b.Property<int>("Total")
|
||||
.HasColumnType("int")
|
||||
.HasComment("จำนวนคน");
|
||||
|
|
@ -13777,6 +13855,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("กําหนดวันนัดหมายเพื่อทําการสัมภาษณ์การลาออก");
|
||||
|
||||
b.Property<string>("Comment")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ความคิดเห็น");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
|
|
@ -13858,6 +13940,50 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid>("RetirementResignId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<int?>("Score1")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 1");
|
||||
|
||||
b.Property<int?>("Score10")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 10");
|
||||
|
||||
b.Property<int?>("Score2")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 2");
|
||||
|
||||
b.Property<int?>("Score3")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 3");
|
||||
|
||||
b.Property<int?>("Score4")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 4");
|
||||
|
||||
b.Property<int?>("Score5")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 5");
|
||||
|
||||
b.Property<int?>("Score6")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 6");
|
||||
|
||||
b.Property<int?>("Score7")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 7");
|
||||
|
||||
b.Property<int?>("Score8")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 8");
|
||||
|
||||
b.Property<int?>("Score9")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 9");
|
||||
|
||||
b.Property<int?>("ScoreTotal")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนรวม");
|
||||
|
||||
b.Property<bool?>("SuggestFriends")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่");
|
||||
|
|
@ -13881,6 +14007,178 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.ToTable("RetirementQuestions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("char(36)")
|
||||
.HasColumnOrder(0)
|
||||
.HasComment("PrimaryKey")
|
||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
.HasComment("สร้างข้อมูลเมื่อ");
|
||||
|
||||
b.Property<string>("CreatedFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasColumnOrder(104)
|
||||
.HasComment("ชื่อ User ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("CreatedUserId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("LastUpdateFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasColumnOrder(105)
|
||||
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
|
||||
|
||||
b.Property<string>("LastUpdateUserId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasColumnOrder(103)
|
||||
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
|
||||
|
||||
b.Property<DateTime?>("LastUpdatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("Question10Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 10");
|
||||
|
||||
b.Property<string>("Question10Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 10");
|
||||
|
||||
b.Property<string>("Question10Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 10");
|
||||
|
||||
b.Property<string>("Question1Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 1");
|
||||
|
||||
b.Property<string>("Question1Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 1");
|
||||
|
||||
b.Property<string>("Question1Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 1");
|
||||
|
||||
b.Property<string>("Question2Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 2");
|
||||
|
||||
b.Property<string>("Question2Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 2");
|
||||
|
||||
b.Property<string>("Question2Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 2");
|
||||
|
||||
b.Property<string>("Question3Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 3");
|
||||
|
||||
b.Property<string>("Question3Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 3");
|
||||
|
||||
b.Property<string>("Question3Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 3");
|
||||
|
||||
b.Property<string>("Question4Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 4");
|
||||
|
||||
b.Property<string>("Question4Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 4");
|
||||
|
||||
b.Property<string>("Question4Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 4");
|
||||
|
||||
b.Property<string>("Question5Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 5");
|
||||
|
||||
b.Property<string>("Question5Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 5");
|
||||
|
||||
b.Property<string>("Question5Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 5");
|
||||
|
||||
b.Property<string>("Question6Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 6");
|
||||
|
||||
b.Property<string>("Question6Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 6");
|
||||
|
||||
b.Property<string>("Question6Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 6");
|
||||
|
||||
b.Property<string>("Question7Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 7");
|
||||
|
||||
b.Property<string>("Question7Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 7");
|
||||
|
||||
b.Property<string>("Question7Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 7");
|
||||
|
||||
b.Property<string>("Question8Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 8");
|
||||
|
||||
b.Property<string>("Question8Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 8");
|
||||
|
||||
b.Property<string>("Question8Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 8");
|
||||
|
||||
b.Property<string>("Question9Answer")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กรอกคะแนน 9");
|
||||
|
||||
b.Property<string>("Question9Desc")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำถามข้อที่ 9");
|
||||
|
||||
b.Property<string>("Question9Score")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำตอบข้อที่ 9");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("RetirementQuestionnaireQuestions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementResign", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
|
|
@ -14007,6 +14305,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลไม่อนุมัติ");
|
||||
|
||||
b.Property<string>("RemarkHorizontal")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("หมายเหตุแนวนอน");
|
||||
|
||||
b.Property<DateTime?>("SendDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่ยื่นขอออกราชการ");
|
||||
|
|
@ -14790,11 +15092,11 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrgReceiveInsignia")
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrgReceiveInsignia")
|
||||
.WithMany()
|
||||
.HasForeignKey("OrgReceiveInsigniaId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrgReturnInsignia")
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", "OrgReturnInsignia")
|
||||
.WithMany()
|
||||
.HasForeignKey("OrgReturnInsigniaId");
|
||||
|
||||
|
|
@ -15593,6 +15895,25 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("Religion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfileDoc", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document")
|
||||
.WithMany()
|
||||
.HasForeignKey("DocumentId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile")
|
||||
.WithMany("PlacementProfileDocs")
|
||||
.HasForeignKey("PlacementProfileId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Document");
|
||||
|
||||
b.Navigation("PlacementProfile");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Avatar")
|
||||
|
|
@ -16344,6 +16665,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("PlacementCertificates");
|
||||
|
||||
b.Navigation("PlacementEducations");
|
||||
|
||||
b.Navigation("PlacementProfileDocs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementReceive", b =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue