diff options
| author | transtrike <transtrike@gmail.com> | 2020-12-17 19:13:01 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2020-12-17 19:13:01 +0200 |
| commit | 94a3b0661106e91ab3a1a523af3c60df131a4f63 (patch) | |
| tree | d186fe6d0ea18bdefd8e37f83a754d155f4598d2 /src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs | |
| parent | f4515fc3ff5fc222a3bdd40c5d4113f9bd79106f (diff) | |
| download | DevHive-94a3b0661106e91ab3a1a523af3c60df131a4f63.tar DevHive-94a3b0661106e91ab3a1a523af3c60df131a4f63.tar.gz DevHive-94a3b0661106e91ab3a1a523af3c60df131a4f63.zip | |
Friends implementation added. UserController/AddAFriend added
Diffstat (limited to 'src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs')
| -rw-r--r-- | src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs index c1464d4..328eb9c 100644 --- a/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs +++ b/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs @@ -135,6 +135,9 @@ namespace DevHive.Web.Migrations b.Property<bool>("TwoFactorEnabled") .HasColumnType("boolean"); + b.Property<Guid?>("UserId") + .HasColumnType("uuid"); + b.Property<string>("UserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); @@ -148,6 +151,8 @@ namespace DevHive.Web.Migrations .IsUnique() .HasDatabaseName("UserNameIndex"); + b.HasIndex("UserId"); + b.HasIndex("UserName") .IsUnique(); @@ -274,6 +279,13 @@ namespace DevHive.Web.Migrations b.ToTable("RoleUser"); }); + modelBuilder.Entity("DevHive.Data.Models.User", b => + { + b.HasOne("DevHive.Data.Models.User", null) + .WithMany("Friends") + .HasForeignKey("UserId"); + }); + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b => { b.HasOne("DevHive.Data.Models.Role", null) @@ -339,6 +351,11 @@ namespace DevHive.Web.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); + + modelBuilder.Entity("DevHive.Data.Models.User", b => + { + b.Navigation("Friends"); + }); #pragma warning restore 612, 618 } } |
