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

37 lines
1.5 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace CompanyManagment.EFCore.Migrations
{
public partial class SmsResult : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "SmsResults",
columns: table => new
{
id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
MessageId = table.Column<int>(type: "int", nullable: false),
Status = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
ContractingPartyName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Mobile = table.Column<string>(type: "nvarchar(12)", maxLength: 12, nullable: true),
ContractingPatyId = table.Column<long>(type: "bigint", nullable: false),
InstitutionContractId = table.Column<long>(type: "bigint", nullable: false),
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SmsResults", x => x.id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SmsResults");
}
}
}