aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-22 19:21:30 +0200
committerDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-22 19:21:30 +0200
commit51f911378773ffbcebb62b135010d46a1d9aa0d5 (patch)
tree48cf18228732e46b46efac6d58cf8062639477be /src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
parent9b04b4f2b031a3c631dba65908f277996015ae05 (diff)
downloadDevHive-51f911378773ffbcebb62b135010d46a1d9aa0d5.tar
DevHive-51f911378773ffbcebb62b135010d46a1d9aa0d5.tar.gz
DevHive-51f911378773ffbcebb62b135010d46a1d9aa0d5.zip
removing parts of old rating system
Diffstat (limited to 'src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs75
1 files changed, 0 insertions, 75 deletions
diff --git a/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
index 80e3ac0..3b328c6 100644
--- a/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
@@ -145,45 +145,6 @@ namespace DevHive.Data.Migrations
b.ToTable("PostAttachments");
});
- modelBuilder.Entity("DevHive.Data.Models.Relational.RatedPost", b =>
- {
- b.Property<Guid>("UserId")
- .HasColumnType("uuid");
-
- b.Property<Guid>("PostId")
- .HasColumnType("uuid");
-
- b.HasKey("UserId", "PostId");
-
- b.HasIndex("PostId");
-
- b.ToTable("RatedPosts");
- });
-
- modelBuilder.Entity("DevHive.Data.Models.Relational.UserRate", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid");
-
- b.Property<bool>("Liked")
- .HasColumnType("boolean");
-
- b.Property<Guid?>("PostId")
- .HasColumnType("uuid");
-
- b.Property<Guid?>("UserId")
- .HasColumnType("uuid");
-
- b.HasKey("Id");
-
- b.HasIndex("PostId");
-
- b.HasIndex("UserId");
-
- b.ToTable("UserRates");
- });
-
modelBuilder.Entity("DevHive.Data.Models.Role", b =>
{
b.Property<Guid>("Id")
@@ -509,40 +470,6 @@ namespace DevHive.Data.Migrations
b.Navigation("Post");
});
- modelBuilder.Entity("DevHive.Data.Models.Relational.RatedPost", b =>
- {
- b.HasOne("DevHive.Data.Models.Post", "Post")
- .WithMany()
- .HasForeignKey("PostId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("DevHive.Data.Models.User", "User")
- .WithMany("RatedPosts")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Post");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("DevHive.Data.Models.Relational.UserRate", b =>
- {
- b.HasOne("DevHive.Data.Models.Post", "Post")
- .WithMany()
- .HasForeignKey("PostId");
-
- b.HasOne("DevHive.Data.Models.User", "User")
- .WithMany()
- .HasForeignKey("UserId");
-
- b.Navigation("Post");
-
- b.Navigation("User");
- });
-
modelBuilder.Entity("DevHive.Data.Models.User", b =>
{
b.HasOne("DevHive.Data.Models.User", null)
@@ -664,8 +591,6 @@ namespace DevHive.Data.Migrations
b.Navigation("Posts");
b.Navigation("ProfilePicture");
-
- b.Navigation("RatedPosts");
});
#pragma warning restore 612, 618
}