using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Diligent.WebAPI.Data.Migrations { public partial class AddedApplicant : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Applicants", columns: table => new { ApplicantId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), FirstName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), LastName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Position = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), DateOfApplication = table.Column(type: "datetime2", nullable: false), CV = table.Column(type: "nvarchar(max)", nullable: false), Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), PhoneNumber = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: false), LinkedlnLink = table.Column(type: "nvarchar(max)", nullable: true), GithubLink = table.Column(type: "nvarchar(max)", nullable: true), BitBucketLink = table.Column(type: "nvarchar(max)", nullable: true), Experience = table.Column(type: "int", nullable: false), ApplicationChannel = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Applicants", x => x.ApplicantId); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Applicants"); } } }