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

40 lines
1.5 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace CompanyManagment.EFCore.Migrations
{
public partial class ContactInfo : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "InstitutinContractContactInfo",
columns: table => new
{
id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PhoneType = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
InstitutionContractId = table.Column<long>(type: "bigint", nullable: false),
Position = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PhoneNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
FnameLname = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_InstitutinContractContactInfo", x => x.id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "InstitutinContractContactInfo");
}
}
}