Files
Backend-Api/CompanyManagment.EFCore/Migrations/20250414150631_InstitutionContractTemp.cs

49 lines
2.4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
/// <inheritdoc />
public partial class InstitutionContractTemp : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "InstitutionContractTemps",
columns: table => new
{
id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
ContractingPartyTempId = table.Column<long>(type: "bigint", nullable: false),
PaymentModel = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
PeriodModel = table.Column<string>(type: "nvarchar(3)", maxLength: 3, nullable: true),
TotalPayment = table.Column<double>(type: "float", nullable: false),
ContractStartGr = table.Column<DateTime>(type: "datetime2", nullable: false),
ContractEndGr = table.Column<DateTime>(type: "datetime2", nullable: false),
OfficialCompany = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
ValueAddedTax = table.Column<double>(type: "float", nullable: false),
VerifyCode = table.Column<string>(type: "nvarchar(6)", maxLength: 6, nullable: true),
RegistrationStatus = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
MessageId = table.Column<int>(type: "int", nullable: false),
SendVerifyCodeTime = table.Column<DateTime>(type: "datetime2", nullable: true),
VerifyCodeEndTime = table.Column<DateTime>(type: "datetime2", nullable: true),
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_InstitutionContractTemps", x => x.id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "InstitutionContractTemps");
}
}
}