api cms แก้หน้าสมัครสอบ

This commit is contained in:
Kittapath 2023-04-07 16:26:11 +07:00
parent c986fc1500
commit 9486ad160d
21 changed files with 9389 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,113 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
/// <inheritdoc />
public partial class Addtablecms : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "CMSCandidates",
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"),
LogoImgId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
BannerImgId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
NameTh = table.Column<string>(type: "longtext", nullable: true, comment: "ชื่อเว็บภาษาไทย")
.Annotation("MySql:CharSet", "utf8mb4"),
NameEn = table.Column<string>(type: "longtext", nullable: true, comment: "ชื่อเว็บภาษาอังกฤษ")
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "longtext", nullable: true, comment: "ข้อมูลเว็บโดยย่อ")
.Annotation("MySql:CharSet", "utf8mb4"),
About = table.Column<string>(type: "longtext", nullable: true, comment: "ข้อมูลเกี่ยวกับเรา")
.Annotation("MySql:CharSet", "utf8mb4"),
Address = table.Column<string>(type: "longtext", nullable: true, comment: "ที่อยู่")
.Annotation("MySql:CharSet", "utf8mb4"),
ProvinceId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
DistrictId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
SubDistrictId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
ZipCode = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "รหัสไปรษณีย์")
.Annotation("MySql:CharSet", "utf8mb4"),
Telephone = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "โทรศัพท์")
.Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_CMSCandidates", x => x.Id);
table.ForeignKey(
name: "FK_CMSCandidates_Districts_DistrictId",
column: x => x.DistrictId,
principalTable: "Districts",
principalColumn: "Id");
table.ForeignKey(
name: "FK_CMSCandidates_Documents_BannerImgId",
column: x => x.BannerImgId,
principalTable: "Documents",
principalColumn: "Id");
table.ForeignKey(
name: "FK_CMSCandidates_Documents_LogoImgId",
column: x => x.LogoImgId,
principalTable: "Documents",
principalColumn: "Id");
table.ForeignKey(
name: "FK_CMSCandidates_Provinces_ProvinceId",
column: x => x.ProvinceId,
principalTable: "Provinces",
principalColumn: "Id");
table.ForeignKey(
name: "FK_CMSCandidates_SubDistricts_SubDistrictId",
column: x => x.SubDistrictId,
principalTable: "SubDistricts",
principalColumn: "Id");
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateIndex(
name: "IX_CMSCandidates_BannerImgId",
table: "CMSCandidates",
column: "BannerImgId");
migrationBuilder.CreateIndex(
name: "IX_CMSCandidates_DistrictId",
table: "CMSCandidates",
column: "DistrictId");
migrationBuilder.CreateIndex(
name: "IX_CMSCandidates_LogoImgId",
table: "CMSCandidates",
column: "LogoImgId");
migrationBuilder.CreateIndex(
name: "IX_CMSCandidates_ProvinceId",
table: "CMSCandidates",
column: "ProvinceId");
migrationBuilder.CreateIndex(
name: "IX_CMSCandidates_SubDistrictId",
table: "CMSCandidates",
column: "SubDistrictId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "CMSCandidates");
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,123 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
/// <inheritdoc />
public partial class Addtablecms1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "CMSAgency",
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"),
CandidateId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
ZipCode = table.Column<string>(type: "longtext", nullable: true, comment: "ชื่อลิงค์")
.Annotation("MySql:CharSet", "utf8mb4"),
Telephone = table.Column<string>(type: "longtext", nullable: true, comment: "ลิงค์")
.Annotation("MySql:CharSet", "utf8mb4"),
CMSCandidateId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci")
},
constraints: table =>
{
table.PrimaryKey("PK_CMSAgency", x => x.Id);
table.ForeignKey(
name: "FK_CMSAgency_CMSCandidates_CMSCandidateId",
column: x => x.CMSCandidateId,
principalTable: "CMSCandidates",
principalColumn: "Id");
table.ForeignKey(
name: "FK_CMSAgency_Candidates_CandidateId",
column: x => x.CandidateId,
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "CMSGovernment",
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"),
CandidateId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
ZipCode = table.Column<string>(type: "longtext", nullable: true, comment: "ชื่อลิงค์")
.Annotation("MySql:CharSet", "utf8mb4"),
Telephone = table.Column<string>(type: "longtext", nullable: true, comment: "ลิงค์")
.Annotation("MySql:CharSet", "utf8mb4"),
CMSCandidateId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci")
},
constraints: table =>
{
table.PrimaryKey("PK_CMSGovernment", x => x.Id);
table.ForeignKey(
name: "FK_CMSGovernment_CMSCandidates_CMSCandidateId",
column: x => x.CMSCandidateId,
principalTable: "CMSCandidates",
principalColumn: "Id");
table.ForeignKey(
name: "FK_CMSGovernment_Candidates_CandidateId",
column: x => x.CandidateId,
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateIndex(
name: "IX_CMSAgency_CandidateId",
table: "CMSAgency",
column: "CandidateId");
migrationBuilder.CreateIndex(
name: "IX_CMSAgency_CMSCandidateId",
table: "CMSAgency",
column: "CMSCandidateId");
migrationBuilder.CreateIndex(
name: "IX_CMSGovernment_CandidateId",
table: "CMSGovernment",
column: "CandidateId");
migrationBuilder.CreateIndex(
name: "IX_CMSGovernment_CMSCandidateId",
table: "CMSGovernment",
column: "CMSCandidateId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "CMSAgency");
migrationBuilder.DropTable(
name: "CMSGovernment");
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,242 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
/// <inheritdoc />
public partial class Addtableagency : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_CMSAgency_CMSCandidates_CMSCandidateId",
table: "CMSAgency");
migrationBuilder.DropForeignKey(
name: "FK_CMSAgency_Candidates_CandidateId",
table: "CMSAgency");
migrationBuilder.DropForeignKey(
name: "FK_CMSGovernment_CMSCandidates_CMSCandidateId",
table: "CMSGovernment");
migrationBuilder.DropForeignKey(
name: "FK_CMSGovernment_Candidates_CandidateId",
table: "CMSGovernment");
migrationBuilder.DropPrimaryKey(
name: "PK_CMSGovernment",
table: "CMSGovernment");
migrationBuilder.DropPrimaryKey(
name: "PK_CMSAgency",
table: "CMSAgency");
migrationBuilder.RenameTable(
name: "CMSGovernment",
newName: "CMSGovernments");
migrationBuilder.RenameTable(
name: "CMSAgency",
newName: "CMSAgencys");
migrationBuilder.RenameColumn(
name: "ZipCode",
table: "CMSGovernments",
newName: "Name");
migrationBuilder.RenameColumn(
name: "Telephone",
table: "CMSGovernments",
newName: "Link");
migrationBuilder.RenameIndex(
name: "IX_CMSGovernment_CMSCandidateId",
table: "CMSGovernments",
newName: "IX_CMSGovernments_CMSCandidateId");
migrationBuilder.RenameIndex(
name: "IX_CMSGovernment_CandidateId",
table: "CMSGovernments",
newName: "IX_CMSGovernments_CandidateId");
migrationBuilder.RenameColumn(
name: "ZipCode",
table: "CMSAgencys",
newName: "Name");
migrationBuilder.RenameColumn(
name: "Telephone",
table: "CMSAgencys",
newName: "Link");
migrationBuilder.RenameIndex(
name: "IX_CMSAgency_CMSCandidateId",
table: "CMSAgencys",
newName: "IX_CMSAgencys_CMSCandidateId");
migrationBuilder.RenameIndex(
name: "IX_CMSAgency_CandidateId",
table: "CMSAgencys",
newName: "IX_CMSAgencys_CandidateId");
migrationBuilder.AddPrimaryKey(
name: "PK_CMSGovernments",
table: "CMSGovernments",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_CMSAgencys",
table: "CMSAgencys",
column: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSAgencys_CMSCandidates_CMSCandidateId",
table: "CMSAgencys",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSAgencys_Candidates_CandidateId",
table: "CMSAgencys",
column: "CandidateId",
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CMSGovernments_CMSCandidates_CMSCandidateId",
table: "CMSGovernments",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSGovernments_Candidates_CandidateId",
table: "CMSGovernments",
column: "CandidateId",
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_CMSAgencys_CMSCandidates_CMSCandidateId",
table: "CMSAgencys");
migrationBuilder.DropForeignKey(
name: "FK_CMSAgencys_Candidates_CandidateId",
table: "CMSAgencys");
migrationBuilder.DropForeignKey(
name: "FK_CMSGovernments_CMSCandidates_CMSCandidateId",
table: "CMSGovernments");
migrationBuilder.DropForeignKey(
name: "FK_CMSGovernments_Candidates_CandidateId",
table: "CMSGovernments");
migrationBuilder.DropPrimaryKey(
name: "PK_CMSGovernments",
table: "CMSGovernments");
migrationBuilder.DropPrimaryKey(
name: "PK_CMSAgencys",
table: "CMSAgencys");
migrationBuilder.RenameTable(
name: "CMSGovernments",
newName: "CMSGovernment");
migrationBuilder.RenameTable(
name: "CMSAgencys",
newName: "CMSAgency");
migrationBuilder.RenameColumn(
name: "Name",
table: "CMSGovernment",
newName: "ZipCode");
migrationBuilder.RenameColumn(
name: "Link",
table: "CMSGovernment",
newName: "Telephone");
migrationBuilder.RenameIndex(
name: "IX_CMSGovernments_CMSCandidateId",
table: "CMSGovernment",
newName: "IX_CMSGovernment_CMSCandidateId");
migrationBuilder.RenameIndex(
name: "IX_CMSGovernments_CandidateId",
table: "CMSGovernment",
newName: "IX_CMSGovernment_CandidateId");
migrationBuilder.RenameColumn(
name: "Name",
table: "CMSAgency",
newName: "ZipCode");
migrationBuilder.RenameColumn(
name: "Link",
table: "CMSAgency",
newName: "Telephone");
migrationBuilder.RenameIndex(
name: "IX_CMSAgencys_CMSCandidateId",
table: "CMSAgency",
newName: "IX_CMSAgency_CMSCandidateId");
migrationBuilder.RenameIndex(
name: "IX_CMSAgencys_CandidateId",
table: "CMSAgency",
newName: "IX_CMSAgency_CandidateId");
migrationBuilder.AddPrimaryKey(
name: "PK_CMSGovernment",
table: "CMSGovernment",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_CMSAgency",
table: "CMSAgency",
column: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSAgency_CMSCandidates_CMSCandidateId",
table: "CMSAgency",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSAgency_Candidates_CandidateId",
table: "CMSAgency",
column: "CandidateId",
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CMSGovernment_CMSCandidates_CMSCandidateId",
table: "CMSGovernment",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSGovernment_Candidates_CandidateId",
table: "CMSGovernment",
column: "CandidateId",
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,175 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
/// <inheritdoc />
public partial class Addtablegoverment : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_CMSAgencys_CMSCandidates_CMSCandidateId",
table: "CMSAgencys");
migrationBuilder.DropForeignKey(
name: "FK_CMSAgencys_Candidates_CandidateId",
table: "CMSAgencys");
migrationBuilder.DropForeignKey(
name: "FK_CMSGovernments_CMSCandidates_CMSCandidateId",
table: "CMSGovernments");
migrationBuilder.DropForeignKey(
name: "FK_CMSGovernments_Candidates_CandidateId",
table: "CMSGovernments");
migrationBuilder.DropIndex(
name: "IX_CMSGovernments_CandidateId",
table: "CMSGovernments");
migrationBuilder.DropIndex(
name: "IX_CMSAgencys_CandidateId",
table: "CMSAgencys");
migrationBuilder.DropColumn(
name: "CandidateId",
table: "CMSGovernments");
migrationBuilder.DropColumn(
name: "CandidateId",
table: "CMSAgencys");
migrationBuilder.AlterColumn<Guid>(
name: "CMSCandidateId",
table: "CMSGovernments",
type: "char(36)",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
collation: "ascii_general_ci",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AlterColumn<Guid>(
name: "CMSCandidateId",
table: "CMSAgencys",
type: "char(36)",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
collation: "ascii_general_ci",
oldClrType: typeof(Guid),
oldType: "char(36)",
oldNullable: true)
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AddForeignKey(
name: "FK_CMSAgencys_CMSCandidates_CMSCandidateId",
table: "CMSAgencys",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CMSGovernments_CMSCandidates_CMSCandidateId",
table: "CMSGovernments",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_CMSAgencys_CMSCandidates_CMSCandidateId",
table: "CMSAgencys");
migrationBuilder.DropForeignKey(
name: "FK_CMSGovernments_CMSCandidates_CMSCandidateId",
table: "CMSGovernments");
migrationBuilder.AlterColumn<Guid>(
name: "CMSCandidateId",
table: "CMSGovernments",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(Guid),
oldType: "char(36)")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "CandidateId",
table: "CMSGovernments",
type: "char(36)",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
collation: "ascii_general_ci");
migrationBuilder.AlterColumn<Guid>(
name: "CMSCandidateId",
table: "CMSAgencys",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci",
oldClrType: typeof(Guid),
oldType: "char(36)")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "CandidateId",
table: "CMSAgencys",
type: "char(36)",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
collation: "ascii_general_ci");
migrationBuilder.CreateIndex(
name: "IX_CMSGovernments_CandidateId",
table: "CMSGovernments",
column: "CandidateId");
migrationBuilder.CreateIndex(
name: "IX_CMSAgencys_CandidateId",
table: "CMSAgencys",
column: "CandidateId");
migrationBuilder.AddForeignKey(
name: "FK_CMSAgencys_CMSCandidates_CMSCandidateId",
table: "CMSAgencys",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSAgencys_Candidates_CandidateId",
table: "CMSAgencys",
column: "CandidateId",
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_CMSGovernments_CMSCandidates_CMSCandidateId",
table: "CMSGovernments",
column: "CMSCandidateId",
principalTable: "CMSCandidates",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_CMSGovernments_Candidates_CandidateId",
table: "CMSGovernments",
column: "CandidateId",
principalTable: "Candidates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
}
}