| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- FirstName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
- LastName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
- Position = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
- DateOfApplication = table.Column<DateTime>(type: "datetime2", nullable: false),
- CV = table.Column<string>(type: "nvarchar(max)", nullable: false),
- Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
- PhoneNumber = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: false),
- LinkedlnLink = table.Column<string>(type: "nvarchar(max)", nullable: true),
- GithubLink = table.Column<string>(type: "nvarchar(max)", nullable: true),
- BitBucketLink = table.Column<string>(type: "nvarchar(max)", nullable: true),
- Experience = table.Column<int>(type: "int", nullable: false),
- ApplicationChannel = table.Column<string>(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Applicants", x => x.ApplicantId);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Applicants");
- }
- }
- }
|