diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-05 17:48:33 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-05 17:48:33 +0200 |
| commit | 3cd6c8732f421dfa31cca7e7d624589f1ebdd28d (patch) | |
| tree | 938d8f4b6a584cfce404da96f808bdde6b91498e /src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs | |
| parent | a0a048d1fc6672a6478169f3c9139d9e5a6ff474 (diff) | |
| download | DevHive-3cd6c8732f421dfa31cca7e7d624589f1ebdd28d.tar DevHive-3cd6c8732f421dfa31cca7e7d624589f1ebdd28d.tar.gz DevHive-3cd6c8732f421dfa31cca7e7d624589f1ebdd28d.zip | |
Added post file attachments migration
Diffstat (limited to 'src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
| -rw-r--r-- | src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs | 34 |
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"); |
