aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-02-03 02:59:21 +0200
committertranstrike <transtrike@gmail.com>2021-02-03 02:59:21 +0200
commit81b3fc43a900857443c3c763f52e0a54719c2fae (patch)
tree1f79f61296cc91002233a6de533698172f2e5fd7 /src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
parentf99d14ff45ec4e03ce261f7f5a8cccf876a94307 (diff)
downloadDevHive-81b3fc43a900857443c3c763f52e0a54719c2fae.tar
DevHive-81b3fc43a900857443c3c763f52e0a54719c2fae.tar.gz
DevHive-81b3fc43a900857443c3c763f52e0a54719c2fae.zip
User-Friends Relation Fixed
Diffstat (limited to 'src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
index 435adb4..96cabad 100644
--- a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
@@ -233,7 +233,7 @@ namespace DevHive.Data.Migrations
b.ToTable("RatedPosts");
});
- modelBuilder.Entity("DevHive.Data.RelationModels.UserFriends", b =>
+ modelBuilder.Entity("DevHive.Data.RelationModels.UserFriend", b =>
{
b.Property<Guid>("UserId")
.HasColumnType("uuid");
@@ -456,16 +456,16 @@ namespace DevHive.Data.Migrations
b.Navigation("User");
});
- modelBuilder.Entity("DevHive.Data.RelationModels.UserFriends", b =>
+ modelBuilder.Entity("DevHive.Data.RelationModels.UserFriend", b =>
{
b.HasOne("DevHive.Data.Models.User", "Friend")
- .WithMany()
+ .WithMany("FriendsOf")
.HasForeignKey("FriendId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("DevHive.Data.Models.User", "User")
- .WithMany("Friends")
+ .WithMany("MyFriends")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
@@ -589,7 +589,9 @@ namespace DevHive.Data.Migrations
{
b.Navigation("Comments");
- b.Navigation("Friends");
+ b.Navigation("FriendsOf");
+
+ b.Navigation("MyFriends");
b.Navigation("Posts");
});