using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
///
public partial class addcontactus : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ContactUs",
columns: table => new
{
id = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
FirstName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
LastName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
Email = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true),
Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
Message = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true),
FullName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
CreationDate = table.Column(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ContactUs", x => x.id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ContactUs");
}
}
}