2023-08-18 16:14:41 -05:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.Employees.Migrations
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
2023-09-27 16:18:48 -05:00
|
|
|
|
public partial class AzureEmployees : Migration
|
2023-08-18 16:14:41 -05:00
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "Employees",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
2023-09-27 16:18:48 -05:00
|
|
|
|
Id = table.Column<int>(type: "int", nullable: false)
|
|
|
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
|
|
|
EmployeeCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
2023-08-18 16:14:41 -05:00
|
|
|
|
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
|
|
|
BirthDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
|
|
|
OfficePhoneNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
|
|
|
Email = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
|
|
|
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
|
|
|
|
PreferredLanguage = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_Employees", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "Employees");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|