นำเข้าหน้าจอ เพิ่ม แก้ไข ลบ แบบข้อตกลง
This commit is contained in:
47
Migrations/25640202082506_AddOperatingAgreement.cs
Normal file
47
Migrations/25640202082506_AddOperatingAgreement.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace tb320eva.Migrations
|
||||
{
|
||||
public partial class AddOperatingAgreement : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "eva_evaluation_operating_agreement",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false),
|
||||
created = table.Column<DateTime>(nullable: false),
|
||||
updated = table.Column<DateTime>(nullable: false),
|
||||
isActive = table.Column<bool>(nullable: false),
|
||||
create_evaluation_detail_id = table.Column<int>(nullable: true),
|
||||
mission_no = table.Column<int>(nullable: true),
|
||||
mission_detail = table.Column<string>(maxLength: 4000, nullable: true),
|
||||
target = table.Column<string>(maxLength: 4000, nullable: true),
|
||||
indicators = table.Column<string>(maxLength: 4000, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_eva_evaluation_operating_agreement", x => x.id);
|
||||
table.ForeignKey(
|
||||
name: "FK_eva_evaluation_operating_agreement_eva_create_evaluation_de~",
|
||||
column: x => x.create_evaluation_detail_id,
|
||||
principalTable: "eva_create_evaluation_detail",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_eva_evaluation_operating_agreement_create_evaluation_detail~",
|
||||
table: "eva_evaluation_operating_agreement",
|
||||
column: "create_evaluation_detail_id");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "eva_evaluation_operating_agreement");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user