123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- // <auto-generated />
- using System;
- using HyperCube.Data;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- namespace HyperCube.Migrations
- {
- [DbContext(typeof(ApplicationDbContext))]
- partial class ApplicationDbContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 64)
- .HasAnnotation("ProductVersion", "5.0.4");
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
- {
- b.Property<string>("Id")
- .HasColumnType("varchar(767)");
- b.Property<string>("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnType("text");
- b.Property<string>("Name")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.Property<string>("NormalizedName")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.HasKey("Id");
- b.HasIndex("NormalizedName")
- .IsUnique()
- .HasDatabaseName("RoleNameIndex");
- b.ToTable("AspNetRoles");
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
- b.Property<string>("ClaimType")
- .HasColumnType("text");
- b.Property<string>("ClaimValue")
- .HasColumnType("text");
- b.Property<string>("RoleId")
- .IsRequired()
- .HasColumnType("varchar(767)");
- b.HasKey("Id");
- b.HasIndex("RoleId");
- b.ToTable("AspNetRoleClaims");
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
- {
- b.Property<string>("Id")
- .HasColumnType("varchar(767)");
- b.Property<int>("AccessFailedCount")
- .HasColumnType("int");
- b.Property<string>("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnType("text");
- b.Property<string>("Email")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.Property<bool>("EmailConfirmed")
- .HasColumnType("tinyint(1)");
- b.Property<bool>("LockoutEnabled")
- .HasColumnType("tinyint(1)");
- b.Property<DateTimeOffset?>("LockoutEnd")
- .HasColumnType("timestamp");
- b.Property<string>("NormalizedEmail")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.Property<string>("NormalizedUserName")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.Property<string>("PasswordHash")
- .HasColumnType("text");
- b.Property<string>("PhoneNumber")
- .HasColumnType("text");
- b.Property<bool>("PhoneNumberConfirmed")
- .HasColumnType("tinyint(1)");
- b.Property<string>("SecurityStamp")
- .HasColumnType("text");
- b.Property<bool>("TwoFactorEnabled")
- .HasColumnType("tinyint(1)");
- b.Property<string>("UserName")
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.HasKey("Id");
- b.HasIndex("NormalizedEmail")
- .HasDatabaseName("EmailIndex");
- b.HasIndex("NormalizedUserName")
- .IsUnique()
- .HasDatabaseName("UserNameIndex");
- b.ToTable("AspNetUsers");
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
- b.Property<string>("ClaimType")
- .HasColumnType("text");
- b.Property<string>("ClaimValue")
- .HasColumnType("text");
- b.Property<string>("UserId")
- .IsRequired()
- .HasColumnType("varchar(767)");
- b.HasKey("Id");
- b.HasIndex("UserId");
- b.ToTable("AspNetUserClaims");
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
- {
- b.Property<string>("LoginProvider")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
- b.Property<string>("ProviderKey")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
- b.Property<string>("ProviderDisplayName")
- .HasColumnType("text");
- b.Property<string>("UserId")
- .IsRequired()
- .HasColumnType("varchar(767)");
- b.HasKey("LoginProvider", "ProviderKey");
- b.HasIndex("UserId");
- b.ToTable("AspNetUserLogins");
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
- {
- b.Property<string>("UserId")
- .HasColumnType("varchar(767)");
- b.Property<string>("RoleId")
- .HasColumnType("varchar(767)");
- b.HasKey("UserId", "RoleId");
- b.HasIndex("RoleId");
- b.ToTable("AspNetUserRoles");
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
- {
- b.Property<string>("UserId")
- .HasColumnType("varchar(767)");
- b.Property<string>("LoginProvider")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
- b.Property<string>("Name")
- .HasMaxLength(128)
- .HasColumnType("varchar(128)");
- b.Property<string>("Value")
- .HasColumnType("text");
- b.HasKey("UserId", "LoginProvider", "Name");
- b.ToTable("AspNetUserTokens");
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null)
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
- #pragma warning restore 612, 618
- }
- }
- }
|