2017-09-12 13:44:52 +02:00
|
|
|
|
// <auto-generated />
|
2019-07-29 13:21:00 +02:00
|
|
|
|
using System;
|
2016-09-06 17:09:19 -07:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
2019-07-29 13:21:00 +02:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
2017-09-13 14:53:06 +02:00
|
|
|
|
using Microsoft.eShopOnContainers.Services.Identity.API.Data;
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
namespace Identity.API.Migrations
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
|
|
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
2017-09-12 13:44:52 +02:00
|
|
|
|
#pragma warning disable 612, 618
|
2016-09-06 17:09:19 -07:00
|
|
|
|
modelBuilder
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.HasAnnotation("ProductVersion", "3.0.0-preview7.19362.6")
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
|
|
|
{
|
2019-07-29 13:21:00 +02:00
|
|
|
|
b.Property<string>("Id");
|
2017-09-12 13:44:52 +02:00
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.HasMaxLength(256);
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedName")
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.HasMaxLength(256);
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedName")
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasName("RoleNameIndex")
|
|
|
|
|
.HasFilter("[NormalizedName] IS NOT NULL");
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoles");
|
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoleClaims");
|
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserClaims");
|
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserRoles");
|
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LoginProvider");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Value");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserTokens");
|
|
|
|
|
});
|
|
|
|
|
|
2019-07-29 13:21:00 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("Id");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AccessFailedCount");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CardHolderName")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CardNumber")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CardType");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("City")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Country")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Email")
|
|
|
|
|
.HasMaxLength(256);
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("EmailConfirmed");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Expiration")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastName")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("LockoutEnabled");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
|
|
|
.HasMaxLength(256);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
|
|
|
.HasMaxLength(256);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordHash");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PhoneNumber");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SecurityNumber")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SecurityStamp");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("State")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Street")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("TwoFactorEnabled");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName")
|
|
|
|
|
.HasMaxLength(256);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ZipCode")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
|
|
|
.HasName("EmailIndex");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasName("UserNameIndex")
|
|
|
|
|
.HasFilter("[NormalizedUserName] IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUsers");
|
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
2019-07-29 13:21:00 +02:00
|
|
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.WithMany()
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.HasForeignKey("RoleId")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2016-09-06 17:09:19 -07:00
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
2019-07-29 13:21:00 +02:00
|
|
|
|
b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser", null)
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.WithMany()
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.HasForeignKey("UserId")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2016-09-06 17:09:19 -07:00
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
2019-07-29 13:21:00 +02:00
|
|
|
|
b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser", null)
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.WithMany()
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.HasForeignKey("UserId")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2016-09-06 17:09:19 -07:00
|
|
|
|
});
|
|
|
|
|
|
2017-09-12 13:44:52 +02:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
2019-07-29 13:21:00 +02:00
|
|
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.WithMany()
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.HasForeignKey("RoleId")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
2019-07-29 13:21:00 +02:00
|
|
|
|
b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser", null)
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2017-09-12 13:44:52 +02:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
|
|
|
{
|
2019-07-29 13:21:00 +02:00
|
|
|
|
b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser", null)
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.WithMany()
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.HasForeignKey("UserId")
|
2019-07-29 13:21:00 +02:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2016-09-06 17:09:19 -07:00
|
|
|
|
});
|
2017-09-12 13:44:52 +02:00
|
|
|
|
#pragma warning restore 612, 618
|
2016-09-06 17:09:19 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|