using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace UnivateProperties_API.Migrations { public partial class nonRegIndiv : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "NonRegIndividuals", columns: table => new { Id = table.Column(nullable: false) .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), Name = table.Column(nullable: true), Surname = table.Column(nullable: true), IDNumber = table.Column(nullable: true), CompanyRegNumber = table.Column(nullable: true), EmailAddress = table.Column(nullable: true), CellNumber = table.Column(nullable: true), TelephoneNumber = table.Column(nullable: true), WeekId = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_NonRegIndividuals", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "NonRegIndividuals"); } } }