| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Metadata;
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace Winsoft.GOV.XF.WXCore.Data.Migrations
- {
- [DbContext(typeof(ApplicationDbContext))]
- [Migration("00000000000000_CreateIdentitySchema")]
- partial class CreateIdentitySchema
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- modelBuilder
- .HasAnnotation("ProductVersion", "1.0.0-rc3")
- .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");
- });
- modelBuilder.Entity("Winsoft.GOV.XF.WXCore.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")
- .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 =>
- {
- b.HasOne("Winsoft.GOV.XF.WXCore.Models.ApplicationUser")
- .WithMany("Claims")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<string>", b =>
- {
- b.HasOne("Winsoft.GOV.XF.WXCore.Models.ApplicationUser")
- .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);
- b.HasOne("Winsoft.GOV.XF.WXCore.Models.ApplicationUser")
- .WithMany("Roles")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
- }
- }
- }
|