using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Weiferl.Databas.EF.Migrations { /// public partial class init : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Countries", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Slug = table.Column(type: "nvarchar(max)", nullable: false), Name = table.Column(type: "nvarchar(max)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Countries", x => x.Id); }); migrationBuilder.CreateTable( name: "Users", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), UserId = table.Column(type: "uniqueidentifier", nullable: false), Firstname = table.Column(type: "nvarchar(max)", nullable: false), Lastname = table.Column(type: "nvarchar(max)", nullable: false), Email = table.Column(type: "nvarchar(max)", nullable: false), Birthday = table.Column(type: "datetime2", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false), CountrySlug = table.Column(type: "nvarchar(max)", nullable: false), RegisterDate = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Users", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Countries"); migrationBuilder.DropTable( name: "Users"); } } }