|
|
@ -1,10 +1,12 @@ |
|
|
|
// <auto-generated /> |
|
|
|
// <auto-generated /> |
|
|
|
|
|
|
|
using System; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
using RankingApp.Data; |
|
|
|
using RankingApp.Data; |
|
|
|
using System; |
|
|
|
|
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
|
|
|
|
namespace RankingApp.Data.Migrations |
|
|
|
namespace RankingApp.Data.Migrations |
|
|
|
{ |
|
|
|
{ |
|
|
@ -15,9 +17,10 @@ namespace RankingApp.Data.Migrations |
|
|
|
{ |
|
|
|
{ |
|
|
|
#pragma warning disable 612, 618 |
|
|
|
#pragma warning disable 612, 618 |
|
|
|
modelBuilder |
|
|
|
modelBuilder |
|
|
|
.HasAnnotation("ProductVersion", "3.0.0") |
|
|
|
.HasAnnotation("ProductVersion", "6.0.20") |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128) |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128); |
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|
|
|
|
|
|
|
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => |
|
|
|
{ |
|
|
|
{ |
|
|
@ -29,29 +32,30 @@ namespace RankingApp.Data.Migrations |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
b.Property<string>("Name") |
|
|
|
.HasColumnType("nvarchar(256)") |
|
|
|
.HasMaxLength(256) |
|
|
|
.HasMaxLength(256); |
|
|
|
.HasColumnType("nvarchar(256)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedName") |
|
|
|
b.Property<string>("NormalizedName") |
|
|
|
.HasColumnType("nvarchar(256)") |
|
|
|
.HasMaxLength(256) |
|
|
|
.HasMaxLength(256); |
|
|
|
.HasColumnType("nvarchar(256)"); |
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedName") |
|
|
|
b.HasIndex("NormalizedName") |
|
|
|
.IsUnique() |
|
|
|
.IsUnique() |
|
|
|
.HasName("RoleNameIndex") |
|
|
|
.HasDatabaseName("RoleNameIndex") |
|
|
|
.HasFilter("[NormalizedName] IS NOT NULL"); |
|
|
|
.HasFilter("[NormalizedName] IS NOT NULL"); |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoles"); |
|
|
|
b.ToTable("AspNetRoles", (string)null); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => |
|
|
|
{ |
|
|
|
{ |
|
|
|
b.Property<int>("Id") |
|
|
|
b.Property<int>("Id") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasColumnType("int") |
|
|
|
.HasColumnType("int"); |
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType") |
|
|
|
b.Property<string>("ClaimType") |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
@ -67,7 +71,7 @@ namespace RankingApp.Data.Migrations |
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId"); |
|
|
|
b.HasIndex("RoleId"); |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoleClaims"); |
|
|
|
b.ToTable("AspNetRoleClaims", (string)null); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b => |
|
|
@ -83,8 +87,8 @@ namespace RankingApp.Data.Migrations |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Email") |
|
|
|
b.Property<string>("Email") |
|
|
|
.HasColumnType("nvarchar(256)") |
|
|
|
.HasMaxLength(256) |
|
|
|
.HasMaxLength(256); |
|
|
|
.HasColumnType("nvarchar(256)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("EmailConfirmed") |
|
|
|
b.Property<bool>("EmailConfirmed") |
|
|
|
.HasColumnType("bit"); |
|
|
|
.HasColumnType("bit"); |
|
|
@ -96,12 +100,12 @@ namespace RankingApp.Data.Migrations |
|
|
|
.HasColumnType("datetimeoffset"); |
|
|
|
.HasColumnType("datetimeoffset"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedEmail") |
|
|
|
b.Property<string>("NormalizedEmail") |
|
|
|
.HasColumnType("nvarchar(256)") |
|
|
|
.HasMaxLength(256) |
|
|
|
.HasMaxLength(256); |
|
|
|
.HasColumnType("nvarchar(256)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedUserName") |
|
|
|
b.Property<string>("NormalizedUserName") |
|
|
|
.HasColumnType("nvarchar(256)") |
|
|
|
.HasMaxLength(256) |
|
|
|
.HasMaxLength(256); |
|
|
|
.HasColumnType("nvarchar(256)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordHash") |
|
|
|
b.Property<string>("PasswordHash") |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
@ -119,28 +123,29 @@ namespace RankingApp.Data.Migrations |
|
|
|
.HasColumnType("bit"); |
|
|
|
.HasColumnType("bit"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName") |
|
|
|
b.Property<string>("UserName") |
|
|
|
.HasColumnType("nvarchar(256)") |
|
|
|
.HasMaxLength(256) |
|
|
|
.HasMaxLength(256); |
|
|
|
.HasColumnType("nvarchar(256)"); |
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedEmail") |
|
|
|
b.HasIndex("NormalizedEmail") |
|
|
|
.HasName("EmailIndex"); |
|
|
|
.HasDatabaseName("EmailIndex"); |
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedUserName") |
|
|
|
b.HasIndex("NormalizedUserName") |
|
|
|
.IsUnique() |
|
|
|
.IsUnique() |
|
|
|
.HasName("UserNameIndex") |
|
|
|
.HasDatabaseName("UserNameIndex") |
|
|
|
.HasFilter("[NormalizedUserName] IS NOT NULL"); |
|
|
|
.HasFilter("[NormalizedUserName] IS NOT NULL"); |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUsers"); |
|
|
|
b.ToTable("AspNetUsers", (string)null); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => |
|
|
|
{ |
|
|
|
{ |
|
|
|
b.Property<int>("Id") |
|
|
|
b.Property<int>("Id") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasColumnType("int") |
|
|
|
.HasColumnType("int"); |
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType") |
|
|
|
b.Property<string>("ClaimType") |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
@ -156,18 +161,18 @@ namespace RankingApp.Data.Migrations |
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId"); |
|
|
|
b.HasIndex("UserId"); |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserClaims"); |
|
|
|
b.ToTable("AspNetUserClaims", (string)null); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => |
|
|
|
{ |
|
|
|
{ |
|
|
|
b.Property<string>("LoginProvider") |
|
|
|
b.Property<string>("LoginProvider") |
|
|
|
.HasColumnType("nvarchar(128)") |
|
|
|
.HasMaxLength(128) |
|
|
|
.HasMaxLength(128); |
|
|
|
.HasColumnType("nvarchar(128)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderKey") |
|
|
|
b.Property<string>("ProviderKey") |
|
|
|
.HasColumnType("nvarchar(128)") |
|
|
|
.HasMaxLength(128) |
|
|
|
.HasMaxLength(128); |
|
|
|
.HasColumnType("nvarchar(128)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderDisplayName") |
|
|
|
b.Property<string>("ProviderDisplayName") |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
@ -180,7 +185,7 @@ namespace RankingApp.Data.Migrations |
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId"); |
|
|
|
b.HasIndex("UserId"); |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserLogins"); |
|
|
|
b.ToTable("AspNetUserLogins", (string)null); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => |
|
|
@ -195,7 +200,7 @@ namespace RankingApp.Data.Migrations |
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId"); |
|
|
|
b.HasIndex("RoleId"); |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserRoles"); |
|
|
|
b.ToTable("AspNetUserRoles", (string)null); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => |
|
|
@ -204,19 +209,45 @@ namespace RankingApp.Data.Migrations |
|
|
|
.HasColumnType("nvarchar(450)"); |
|
|
|
.HasColumnType("nvarchar(450)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LoginProvider") |
|
|
|
b.Property<string>("LoginProvider") |
|
|
|
.HasColumnType("nvarchar(128)") |
|
|
|
.HasMaxLength(128) |
|
|
|
.HasMaxLength(128); |
|
|
|
.HasColumnType("nvarchar(128)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
b.Property<string>("Name") |
|
|
|
.HasColumnType("nvarchar(128)") |
|
|
|
.HasMaxLength(128) |
|
|
|
.HasMaxLength(128); |
|
|
|
.HasColumnType("nvarchar(128)"); |
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Value") |
|
|
|
b.Property<string>("Value") |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name"); |
|
|
|
b.HasKey("UserId", "LoginProvider", "Name"); |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserTokens"); |
|
|
|
b.ToTable("AspNetUserTokens", (string)null); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("RankingApp.Data.Models.GameResult", b => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
b.Property<int>("Id") |
|
|
|
|
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
|
|
|
|
.HasColumnType("int"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("Date") |
|
|
|
|
|
|
|
.HasColumnType("datetime2"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Score") |
|
|
|
|
|
|
|
.HasColumnType("int"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("UserId") |
|
|
|
|
|
|
|
.HasColumnType("int"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName") |
|
|
|
|
|
|
|
.IsRequired() |
|
|
|
|
|
|
|
.HasColumnType("nvarchar(max)"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("GameResults"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => |
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => |
|
|
|