//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using MyCompanyName.MyProjectName.DemoApp;
namespace MyCompanyName.MyProjectName.DemoApp.Migrations
{
[DbContext(typeof(DemoAppDbContext))]
partial class DemoAppDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasColumnName("ConcurrencyStamp")
.HasMaxLength(256);
b.Property("Description")
.HasMaxLength(256);
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties");
b.Property("IsStatic");
b.Property("Name")
.IsRequired()
.HasMaxLength(256);
b.Property("Regex")
.HasMaxLength(512);
b.Property("RegexDescription")
.HasMaxLength(128);
b.Property("Required");
b.Property("ValueType");
b.HasKey("Id");
b.ToTable("AbpClaimTypes");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasColumnName("ConcurrencyStamp")
.HasMaxLength(256);
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties");
b.Property("IsDefault")
.HasColumnName("IsDefault");
b.Property("IsPublic")
.HasColumnName("IsPublic");
b.Property("IsStatic")
.HasColumnName("IsStatic");
b.Property("Name")
.IsRequired()
.HasMaxLength(256);
b.Property("NormalizedName")
.IsRequired()
.HasMaxLength(256);
b.Property("TenantId");
b.HasKey("Id");
b.HasIndex("NormalizedName");
b.ToTable("AbpRoles");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("ClaimType")
.IsRequired()
.HasMaxLength(256);
b.Property("ClaimValue")
.HasMaxLength(1024);
b.Property("RoleId");
b.Property("TenantId");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AbpRoleClaims");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("AccessFailedCount")
.ValueGeneratedOnAdd()
.HasColumnName("AccessFailedCount")
.HasDefaultValue(0);
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnName("DeletionTime");
b.Property("Email")
.HasColumnName("Email")
.HasMaxLength(256);
b.Property("EmailConfirmed")
.ValueGeneratedOnAdd()
.HasColumnName("EmailConfirmed")
.HasDefaultValue(false);
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasDefaultValue(false);
b.Property("LastModificationTime")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnName("LastModifierId");
b.Property("LockoutEnabled")
.ValueGeneratedOnAdd()
.HasColumnName("LockoutEnabled")
.HasDefaultValue(false);
b.Property("LockoutEnd");
b.Property("Name")
.HasColumnName("Name")
.HasMaxLength(64);
b.Property("NormalizedEmail")
.HasColumnName("NormalizedEmail")
.HasMaxLength(256);
b.Property("NormalizedUserName")
.IsRequired()
.HasColumnName("NormalizedUserName")
.HasMaxLength(256);
b.Property("PasswordHash")
.HasColumnName("PasswordHash")
.HasMaxLength(256);
b.Property("PhoneNumber")
.HasColumnName("PhoneNumber")
.HasMaxLength(16);
b.Property("PhoneNumberConfirmed")
.ValueGeneratedOnAdd()
.HasColumnName("PhoneNumberConfirmed")
.HasDefaultValue(false);
b.Property("SecurityStamp")
.IsRequired()
.HasColumnName("SecurityStamp")
.HasMaxLength(256);
b.Property("Surname")
.HasColumnName("Surname")
.HasMaxLength(64);
b.Property("TenantId")
.HasColumnName("TenantId");
b.Property("TwoFactorEnabled")
.ValueGeneratedOnAdd()
.HasColumnName("TwoFactorEnabled")
.HasDefaultValue(false);
b.Property("UserName")
.IsRequired()
.HasColumnName("UserName")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("Email");
b.HasIndex("NormalizedEmail");
b.HasIndex("NormalizedUserName");
b.HasIndex("UserName");
b.ToTable("AbpUsers");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("ClaimType")
.IsRequired()
.HasMaxLength(256);
b.Property("ClaimValue")
.HasMaxLength(1024);
b.Property("TenantId");
b.Property("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AbpUserClaims");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.Property("UserId");
b.Property("LoginProvider")
.HasMaxLength(64);
b.Property("ProviderDisplayName")
.HasMaxLength(128);
b.Property("ProviderKey")
.IsRequired()
.HasMaxLength(196);
b.Property("TenantId");
b.HasKey("UserId", "LoginProvider");
b.HasIndex("LoginProvider", "ProviderKey");
b.ToTable("AbpUserLogins");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
{
b.Property("UserId");
b.Property("RoleId");
b.Property("TenantId");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId", "UserId");
b.ToTable("AbpUserRoles");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
{
b.Property("UserId");
b.Property("LoginProvider")
.HasMaxLength(64);
b.Property("Name")
.HasMaxLength(128);
b.Property("TenantId");
b.Property("Value");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AbpUserTokens");
});
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Name")
.IsRequired()
.HasMaxLength(128);
b.Property("ProviderKey")
.IsRequired()
.HasMaxLength(64);
b.Property("ProviderName")
.IsRequired()
.HasMaxLength(64);
b.Property("TenantId");
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpPermissionGrants");
});
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Name")
.IsRequired()
.HasMaxLength(128);
b.Property("ProviderKey")
.HasMaxLength(64);
b.Property("ProviderName")
.HasMaxLength(64);
b.Property("Value")
.IsRequired()
.HasMaxLength(2048);
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpSettings");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityRole")
.WithMany("Claims")
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser")
.WithMany("Claims")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser")
.WithMany("Logins")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Volo.Abp.Identity.IdentityUser")
.WithMany("Roles")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser")
.WithMany("Tokens")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
#pragma warning restore 612, 618
}
}
}