37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
public partial class Init2 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "LegalContractingParties",
|
|
columns: table => new
|
|
{
|
|
id = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
LegalName = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: false),
|
|
RegisterId = table.Column<string>(type: "nvarchar(15)", maxLength: 15, nullable: false),
|
|
NationalId = table.Column<string>(type: "nvarchar(15)", maxLength: 15, nullable: false),
|
|
Phone = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
AgentPhone = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Address = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_LegalContractingParties", x => x.id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "LegalContractingParties");
|
|
}
|
|
}
|
|
}
|