aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs34
1 files changed, 30 insertions, 4 deletions
diff --git a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
index d675914..6e0a03a 100644
--- a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
@@ -1,6 +1,5 @@
// <auto-generated />
using System;
-using System.Collections.Generic;
using DevHive.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
@@ -70,9 +69,6 @@ namespace DevHive.Data.Migrations
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid");
- b.Property<List<string>>("FileUrls")
- .HasColumnType("text[]");
-
b.Property<string>("Message")
.HasColumnType("text");
@@ -241,6 +237,25 @@ namespace DevHive.Data.Migrations
b.ToTable("AspNetUsers");
});
+ modelBuilder.Entity("DevHive.Data.RelationModels.PostAttachments", b =>
+ {
+ b.Property<Guid>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uuid");
+
+ b.Property<string>("FileUrl")
+ .HasColumnType("text");
+
+ b.Property<Guid?>("PostId")
+ .HasColumnType("uuid");
+
+ b.HasKey("Id");
+
+ b.HasIndex("PostId");
+
+ b.ToTable("PostAttachments");
+ });
+
modelBuilder.Entity("DevHive.Data.RelationModels.RatedPost", b =>
{
b.Property<Guid>("UserId")
@@ -487,6 +502,15 @@ namespace DevHive.Data.Migrations
b.Navigation("Post");
});
+ modelBuilder.Entity("DevHive.Data.RelationModels.PostAttachments", b =>
+ {
+ b.HasOne("DevHive.Data.Models.Post", "Post")
+ .WithMany("Attachments")
+ .HasForeignKey("PostId");
+
+ b.Navigation("Post");
+ });
+
modelBuilder.Entity("DevHive.Data.RelationModels.RatedPost", b =>
{
b.HasOne("DevHive.Data.Models.Post", "Post")
@@ -638,6 +662,8 @@ namespace DevHive.Data.Migrations
modelBuilder.Entity("DevHive.Data.Models.Post", b =>
{
+ b.Navigation("Attachments");
+
b.Navigation("Comments");
b.Navigation("Rating");