Files
Backend-Api/CompanyManagment.EFCore/Migrations/20240606131045_RollCallPlan.cs
2024-07-05 21:36:15 +03:30

38 lines
1.3 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
/// <inheritdoc />
public partial class RollCallPlan : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "RollCallPlans",
columns: table => new
{
id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
FinalAmont = table.Column<double>(type: "float", nullable: false),
IncreasePercentage = table.Column<double>(type: "float", nullable: false),
BaseAmont = table.Column<double>(type: "float", nullable: false),
MaxPersonValid = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_RollCallPlans", x => x.id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "RollCallPlans");
}
}
}