40 lines
1.5 KiB
C#
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");
|
|
|
|
|
|
}
|
|
}
|
|
}
|