54 lines
2.4 KiB
C#
54 lines
2.4 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace tb320eva.Migrations
|
|
{
|
|
public partial class Postponement01 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "eva_adjust_postponement",
|
|
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),
|
|
fiscal_year = table.Column<int>(nullable: true),
|
|
theDate = table.Column<DateTime>(nullable: true),
|
|
theRound = table.Column<int>(nullable: true),
|
|
create_evaluation_id = table.Column<int>(nullable: true),
|
|
limit = table.Column<decimal>(nullable: true),
|
|
limit_frame = table.Column<decimal>(nullable: true),
|
|
limit_quota = table.Column<decimal>(nullable: true),
|
|
limit_frame_quota = table.Column<decimal>(nullable: true),
|
|
percentage = table.Column<decimal>(nullable: true),
|
|
command_no = table.Column<string>(maxLength: 100, nullable: true),
|
|
managed_by = table.Column<int>(nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_eva_adjust_postponement", x => x.id);
|
|
table.ForeignKey(
|
|
name: "FK_eva_adjust_postponement_eva_create_evaluation_create_evalua~",
|
|
column: x => x.create_evaluation_id,
|
|
principalTable: "eva_create_evaluation",
|
|
principalColumn: "id",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_eva_adjust_postponement_create_evaluation_id",
|
|
table: "eva_adjust_postponement",
|
|
column: "create_evaluation_id");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "eva_adjust_postponement");
|
|
}
|
|
}
|
|
}
|