You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20221101094812_AddedApplicant.cs 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Diligent.WebAPI.Data.Migrations
  5. {
  6. public partial class AddedApplicant : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "Applicants",
  12. columns: table => new
  13. {
  14. ApplicantId = table.Column<int>(type: "int", nullable: false)
  15. .Annotation("SqlServer:Identity", "1, 1"),
  16. FirstName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  17. LastName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  18. Position = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  19. DateOfApplication = table.Column<DateTime>(type: "datetime2", nullable: false),
  20. CV = table.Column<string>(type: "nvarchar(max)", nullable: false),
  21. Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  22. PhoneNumber = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: false),
  23. LinkedlnLink = table.Column<string>(type: "nvarchar(max)", nullable: true),
  24. GithubLink = table.Column<string>(type: "nvarchar(max)", nullable: true),
  25. BitBucketLink = table.Column<string>(type: "nvarchar(max)", nullable: true),
  26. Experience = table.Column<int>(type: "int", nullable: false),
  27. ApplicationChannel = table.Column<string>(type: "nvarchar(max)", nullable: true)
  28. },
  29. constraints: table =>
  30. {
  31. table.PrimaryKey("PK_Applicants", x => x.ApplicantId);
  32. });
  33. }
  34. protected override void Down(MigrationBuilder migrationBuilder)
  35. {
  36. migrationBuilder.DropTable(
  37. name: "Applicants");
  38. }
  39. }
  40. }