aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-02-05 19:02:35 +0200
committertranstrike <transtrike@gmail.com>2021-02-05 19:02:35 +0200
commit8b62011960ce88d722c64b72af6837c2e2dbcda5 (patch)
tree35a94a7571770057adff2290ffdb949e6daa789c /src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
parent75eeb4358e746d887677903052ed4bd5ca176f4d (diff)
downloadDevHive-8b62011960ce88d722c64b72af6837c2e2dbcda5.tar
DevHive-8b62011960ce88d722c64b72af6837c2e2dbcda5.tar.gz
DevHive-8b62011960ce88d722c64b72af6837c2e2dbcda5.zip
Friends relation FUCKING FINALLY FIXED, NIGGA
Diffstat (limited to 'src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs43
1 files changed, 6 insertions, 37 deletions
diff --git a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
index 6e0a03a..dc5739c 100644
--- a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
@@ -218,6 +218,9 @@ namespace DevHive.Data.Migrations
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("boolean");
+ b.Property<Guid?>("UserId")
+ .HasColumnType("uuid");
+
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
@@ -231,6 +234,8 @@ namespace DevHive.Data.Migrations
.IsUnique()
.HasDatabaseName("UserNameIndex");
+ b.HasIndex("UserId");
+
b.HasIndex("UserName")
.IsUnique();
@@ -271,21 +276,6 @@ namespace DevHive.Data.Migrations
b.ToTable("RatedPosts");
});
- modelBuilder.Entity("DevHive.Data.RelationModels.UserFriend", b =>
- {
- b.Property<Guid>("UserId")
- .HasColumnType("uuid");
-
- b.Property<Guid>("FriendId")
- .HasColumnType("uuid");
-
- b.HasKey("UserId", "FriendId");
-
- b.HasIndex("FriendId");
-
- b.ToTable("UserFriends");
- });
-
modelBuilder.Entity("DevHive.Data.RelationModels.UserRate", b =>
{
b.Property<Guid>("Id")
@@ -530,25 +520,6 @@ namespace DevHive.Data.Migrations
b.Navigation("User");
});
- modelBuilder.Entity("DevHive.Data.RelationModels.UserFriend", b =>
- {
- b.HasOne("DevHive.Data.Models.User", "Friend")
- .WithMany("FriendsOf")
- .HasForeignKey("FriendId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("DevHive.Data.Models.User", "User")
- .WithMany("MyFriends")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Friend");
-
- b.Navigation("User");
- });
-
modelBuilder.Entity("DevHive.Data.RelationModels.UserRate", b =>
{
b.HasOne("DevHive.Data.Models.Post", "Post")
@@ -673,9 +644,7 @@ namespace DevHive.Data.Migrations
{
b.Navigation("Comments");
- b.Navigation("FriendsOf");
-
- b.Navigation("MyFriends");
+ b.Navigation("Friends");
b.Navigation("Posts");