2017-03-02 21:04:03 -08:00
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
2016-12-12 15:42:20 -08:00
using System ;
using Microsoft.EntityFrameworkCore ;
using Microsoft.EntityFrameworkCore.Infrastructure ;
using Microsoft.EntityFrameworkCore.Metadata ;
using Microsoft.EntityFrameworkCore.Migrations ;
using WebApplication.Data ;
namespace WebApplication.Data.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel ( ModelBuilder modelBuilder )
{
modelBuilder
. HasAnnotation ( "ProductVersion" , "1.0.0-rc2-20901" ) ;
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" ) ;
} ) ;
modelBuilder . Entity ( "WebApplication.Models.ApplicationUser" , b = >
{
b . Property < string > ( "Id" ) ;
b . Property < int > ( "AccessFailedCount" ) ;
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( ) ;
b . Property < string > ( "Email" )
. HasAnnotation ( "MaxLength" , 256 ) ;
b . Property < bool > ( "EmailConfirmed" ) ;
b . Property < bool > ( "LockoutEnabled" ) ;
b . Property < DateTimeOffset ? > ( "LockoutEnd" ) ;
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" ) ;
b . Property < string > ( "SecurityStamp" ) ;
b . Property < bool > ( "TwoFactorEnabled" ) ;
b . Property < string > ( "UserName" )
. HasAnnotation ( "MaxLength" , 256 ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "NormalizedEmail" )
. HasName ( "EmailIndex" ) ;
b . HasIndex ( "NormalizedUserName" )
. HasName ( "UserNameIndex" ) ;
b . ToTable ( "AspNetUsers" ) ;
} ) ;
modelBuilder . Entity ( "Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<string>" , b = >
{
b . HasOne ( "Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole" )
. WithMany ( )
. HasForeignKey ( "RoleId" )
. OnDelete ( DeleteBehavior . Cascade ) ;
} ) ;
modelBuilder . Entity ( "Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<string>" , b = >
{
b . HasOne ( "WebApplication.Models.ApplicationUser" )
. WithMany ( )
. HasForeignKey ( "UserId" )
. OnDelete ( DeleteBehavior . Cascade ) ;
} ) ;
modelBuilder . Entity ( "Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<string>" , b = >
{
b . HasOne ( "WebApplication.Models.ApplicationUser" )
. WithMany ( )
. HasForeignKey ( "UserId" )
. OnDelete ( DeleteBehavior . Cascade ) ;
} ) ;
modelBuilder . Entity ( "Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<string>" , b = >
{
b . HasOne ( "Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole" )
. WithMany ( )
. HasForeignKey ( "RoleId" )
. OnDelete ( DeleteBehavior . Cascade ) ;
b . HasOne ( "WebApplication.Models.ApplicationUser" )
. WithMany ( )
. HasForeignKey ( "UserId" )
. OnDelete ( DeleteBehavior . Cascade ) ;
} ) ;
}
}
}