using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DamageAssesment.Api.Employees.Migrations
{
///
public partial class AzureEmployees : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Employees",
columns: table => new
{
Id = table.Column(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
EmployeeCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
BirthDate = table.Column(type: "datetime2", nullable: false),
OfficePhoneNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
Email = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
IsActive = table.Column(type: "bit", nullable: false),
PreferredLanguage = table.Column(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Employees", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Employees");
}
}
}