diff options
Diffstat (limited to 'API/Migrations/DevHiveContextModelSnapshot.cs')
| -rw-r--r-- | API/Migrations/DevHiveContextModelSnapshot.cs | 77 |
1 files changed, 30 insertions, 47 deletions
diff --git a/API/Migrations/DevHiveContextModelSnapshot.cs b/API/Migrations/DevHiveContextModelSnapshot.cs index 07fe3c4..cf670a2 100644 --- a/API/Migrations/DevHiveContextModelSnapshot.cs +++ b/API/Migrations/DevHiveContextModelSnapshot.cs @@ -19,34 +19,6 @@ namespace API.Migrations .HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("ProductVersion", "5.0.1"); - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole<int>", 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") @@ -160,6 +132,34 @@ namespace API.Migrations b.ToTable("Languages"); }); + modelBuilder.Entity("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("Models.Classes.Technology", b => { b.Property<int>("Id") @@ -233,9 +233,6 @@ namespace API.Migrations b.Property<bool>("TwoFactorEnabled") .HasColumnType("boolean"); - b.Property<int?>("UserId") - .HasColumnType("integer"); - b.Property<string>("UserName") .IsRequired() .HasMaxLength(256) @@ -250,14 +247,12 @@ namespace API.Migrations .IsUnique() .HasDatabaseName("UserNameIndex"); - b.HasIndex("UserId"); - b.ToTable("AspNetUsers"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b => { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<int>", null) + b.HasOne("Models.Classes.Roles", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) @@ -284,7 +279,7 @@ namespace API.Migrations modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b => { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<int>", null) + b.HasOne("Models.Classes.Roles", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) @@ -305,18 +300,6 @@ namespace API.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - - modelBuilder.Entity("Models.Classes.User", b => - { - b.HasOne("Models.Classes.User", null) - .WithMany("Friends") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Models.Classes.User", b => - { - b.Navigation("Friends"); - }); #pragma warning restore 612, 618 } } |
