สร้าง api อัพเอกสาร
This commit is contained in:
parent
3ff5a4fa46
commit
15e4d21a6f
13 changed files with 3037 additions and 5 deletions
50
Migrations/20230331071554_add table candidateDoc.cs
Normal file
50
Migrations/20230331071554_add table candidateDoc.cs
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class addtablecandidateDoc : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "PaymentImgId",
|
||||
table: "Candidates",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Candidates_PaymentImgId",
|
||||
table: "Candidates",
|
||||
column: "PaymentImgId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Candidates_Documents_PaymentImgId",
|
||||
table: "Candidates",
|
||||
column: "PaymentImgId",
|
||||
principalTable: "Documents",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Candidates_Documents_PaymentImgId",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Candidates_PaymentImgId",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PaymentImgId",
|
||||
table: "Candidates");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue