aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-13 15:07:51 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-13 15:07:51 +0200
commit75d57f305f2ed1ecf8b82bd62d4bb8f17c06303b (patch)
treeb721fe307d22a7a89f8ee13b3e557df4a2e2bbab /src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
parent503a23c04355624b133161c9356b139f2e4500f6 (diff)
parent4add0831649f6e534d3883aa0e0e7f380d8042c7 (diff)
downloadDevHive-75d57f305f2ed1ecf8b82bd62d4bb8f17c06303b.tar
DevHive-75d57f305f2ed1ecf8b82bd62d4bb8f17c06303b.tar.gz
DevHive-75d57f305f2ed1ecf8b82bd62d4bb8f17c06303b.zip
Merge branch 'dev' of github.com:Team-Kaleidoscope/DevHive into unit_test_refactoring
Diffstat (limited to 'src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
index 8db3abf..a722cb2 100644
--- a/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/Data/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
@@ -69,6 +69,9 @@ namespace DevHive.Data.Migrations
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid");
+ b.Property<int>("CurrentRating")
+ .HasColumnType("integer");
+
b.Property<string>("Message")
.HasColumnType("text");
@@ -108,16 +111,20 @@ namespace DevHive.Data.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
- b.Property<Guid>("PostId")
+ b.Property<bool>("IsLike")
+ .HasColumnType("boolean");
+
+ b.Property<Guid?>("PostId")
.HasColumnType("uuid");
- b.Property<int>("Rate")
- .HasColumnType("integer");
+ b.Property<Guid?>("UserId")
+ .HasColumnType("uuid");
b.HasKey("Id");
- b.HasIndex("PostId")
- .IsUnique();
+ b.HasIndex("PostId");
+
+ b.HasIndex("UserId");
b.ToTable("Rating");
});
@@ -484,12 +491,16 @@ namespace DevHive.Data.Migrations
modelBuilder.Entity("DevHive.Data.Models.Rating", b =>
{
b.HasOne("DevHive.Data.Models.Post", "Post")
- .WithOne("Rating")
- .HasForeignKey("DevHive.Data.Models.Rating", "PostId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
+ .WithMany("Ratings")
+ .HasForeignKey("PostId");
+
+ b.HasOne("DevHive.Data.Models.User", "User")
+ .WithMany()
+ .HasForeignKey("UserId");
b.Navigation("Post");
+
+ b.Navigation("User");
});
modelBuilder.Entity("DevHive.Data.Models.Relational.PostAttachments", b =>
@@ -644,7 +655,7 @@ namespace DevHive.Data.Migrations
b.Navigation("Comments");
- b.Navigation("Rating");
+ b.Navigation("Ratings");
});
modelBuilder.Entity("DevHive.Data.Models.User", b =>