API
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.

20201117074922_nonRegIndiv.cs 1.5KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Microsoft.EntityFrameworkCore.Metadata;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace UnivateProperties_API.Migrations
  4. {
  5. public partial class nonRegIndiv : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "NonRegIndividuals",
  11. columns: table => new
  12. {
  13. Id = table.Column<int>(nullable: false)
  14. .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
  15. Name = table.Column<string>(nullable: true),
  16. Surname = table.Column<string>(nullable: true),
  17. IDNumber = table.Column<string>(nullable: true),
  18. CompanyRegNumber = table.Column<string>(nullable: true),
  19. EmailAddress = table.Column<string>(nullable: true),
  20. CellNumber = table.Column<string>(nullable: true),
  21. TelephoneNumber = table.Column<string>(nullable: true),
  22. WeekId = table.Column<int>(nullable: true)
  23. },
  24. constraints: table =>
  25. {
  26. table.PrimaryKey("PK_NonRegIndividuals", x => x.Id);
  27. });
  28. }
  29. protected override void Down(MigrationBuilder migrationBuilder)
  30. {
  31. migrationBuilder.DropTable(
  32. name: "NonRegIndividuals");
  33. }
  34. }
  35. }