2016-09-06 17:09:19 -07:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
2017-01-30 11:35:16 +01:00
|
|
|
|
using Identity.API.Data;
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
namespace WebMVC.Migrations
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
|
|
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
modelBuilder
|
2016-10-21 05:46:30 +02:00
|
|
|
|
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431")
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("Id");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.HasAnnotation("MaxLength", 256);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedName")
|
|
|
|
|
.HasAnnotation("MaxLength", 256);
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedName")
|
|
|
|
|
.HasName("RoleNameIndex");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoleClaims");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserClaims");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("LoginProvider");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderKey");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderDisplayName");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserLogins");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserRoles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LoginProvider");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Value");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserTokens");
|
|
|
|
|
});
|
|
|
|
|
|
2017-03-03 16:00:15 +01:00
|
|
|
|
modelBuilder.Entity("Microsoft.eShopOnContainers.WebMVC.ViewModels.ApplicationUser", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
b.Property<string>("Id");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AccessFailedCount");
|
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
b.Property<string>("CardHolderName");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CardNumber");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CardType");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("City");
|
|
|
|
|
|
2016-09-06 17:09:19 -07:00
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken();
|
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
b.Property<string>("Country");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CountryCode");
|
|
|
|
|
|
2016-09-06 17:09:19 -07:00
|
|
|
|
b.Property<string>("Email")
|
|
|
|
|
.HasAnnotation("MaxLength", 256);
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("EmailConfirmed");
|
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
b.Property<string>("Expiration");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastName");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Latitude");
|
|
|
|
|
|
2016-09-06 17:09:19 -07:00
|
|
|
|
b.Property<bool>("LockoutEnabled");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd");
|
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
b.Property<double>("Longitude");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name");
|
|
|
|
|
|
2016-09-06 17:09:19 -07:00
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
|
|
|
.HasAnnotation("MaxLength", 256);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
|
|
|
.HasAnnotation("MaxLength", 256);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordHash");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PhoneNumber");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed");
|
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
b.Property<string>("SecurityNumber");
|
|
|
|
|
|
2016-09-06 17:09:19 -07:00
|
|
|
|
b.Property<string>("SecurityStamp");
|
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
b.Property<string>("State");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("StateCode");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Street");
|
|
|
|
|
|
2016-09-06 17:09:19 -07:00
|
|
|
|
b.Property<bool>("TwoFactorEnabled");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName")
|
|
|
|
|
.HasAnnotation("MaxLength", 256);
|
|
|
|
|
|
2016-10-21 05:46:30 +02:00
|
|
|
|
b.Property<string>("ZipCode");
|
|
|
|
|
|
2016-09-06 17:09:19 -07:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
|
|
|
.HasName("EmailIndex");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasName("UserNameIndex");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUsers");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole")
|
|
|
|
|
.WithMany("Claims")
|
|
|
|
|
.HasForeignKey("RoleId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<string>", b =>
|
|
|
|
|
{
|
2017-03-03 16:00:15 +01:00
|
|
|
|
b.HasOne("Microsoft.eShopOnContainers.WebMVC.ViewModels.ApplicationUser")
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.WithMany("Claims")
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<string>", b =>
|
|
|
|
|
{
|
2017-03-03 16:00:15 +01:00
|
|
|
|
b.HasOne("Microsoft.eShopOnContainers.WebMVC.ViewModels.ApplicationUser")
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.WithMany("Logins")
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole")
|
|
|
|
|
.WithMany("Users")
|
|
|
|
|
.HasForeignKey("RoleId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
2017-03-03 16:00:15 +01:00
|
|
|
|
b.HasOne("Microsoft.eShopOnContainers.WebMVC.ViewModels.ApplicationUser")
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.WithMany("Roles")
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|