diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-11 21:32:41 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-11 21:33:11 +0200 |
| commit | c63b86e74230144c111a380b272a0260e6ed019b (patch) | |
| tree | 5394629373492b71bffcd8c2bc0362c5484c347c /API/Migrations/DevHiveContextModelSnapshot.cs | |
| parent | e0642bea9392f5fdab92f70622e671f9fd7ee0c7 (diff) | |
| download | DevHive-c63b86e74230144c111a380b272a0260e6ed019b.tar DevHive-c63b86e74230144c111a380b272a0260e6ed019b.tar.gz DevHive-c63b86e74230144c111a380b272a0260e6ed019b.zip | |
Added UserRole migrations
Diffstat (limited to 'API/Migrations/DevHiveContextModelSnapshot.cs')
| -rw-r--r-- | API/Migrations/DevHiveContextModelSnapshot.cs | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/API/Migrations/DevHiveContextModelSnapshot.cs b/API/Migrations/DevHiveContextModelSnapshot.cs index 56b50d9..2c517ca 100644 --- a/API/Migrations/DevHiveContextModelSnapshot.cs +++ b/API/Migrations/DevHiveContextModelSnapshot.cs @@ -31,34 +31,6 @@ namespace API.Migrations b.ToTable("Languages"); }); - modelBuilder.Entity("Data.Models.Classes.Roles", b => - { - b.Property<int>("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .UseIdentityByDefaultColumn(); - - b.Property<string>("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property<string>("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property<string>("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles"); - }); - modelBuilder.Entity("Data.Models.Classes.Technology", b => { b.Property<int>("Id") @@ -155,6 +127,34 @@ namespace API.Migrations b.ToTable("AspNetUsers"); }); + modelBuilder.Entity("Data.Models.Classes.UserRoles", b => + { + b.Property<int>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .UseIdentityByDefaultColumn(); + + b.Property<string>("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("text"); + + b.Property<string>("Name") + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property<string>("NormalizedName") + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.HasKey("Id"); + + b.HasIndex("NormalizedName") + .IsUnique() + .HasDatabaseName("RoleNameIndex"); + + b.ToTable("AspNetRoles"); + }); + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b => { b.Property<int>("Id") @@ -258,7 +258,7 @@ namespace API.Migrations modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b => { - b.HasOne("Data.Models.Classes.Roles", null) + b.HasOne("Data.Models.Classes.UserRoles", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) @@ -285,7 +285,7 @@ namespace API.Migrations modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b => { - b.HasOne("Data.Models.Classes.Roles", null) + b.HasOne("Data.Models.Classes.UserRoles", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) |
