return postdto from post create

This commit is contained in:
john 2025-05-28 20:05:00 +02:00
parent 8ad4302ec8
commit d1687f276b
15 changed files with 226 additions and 111 deletions

View file

@ -11,5 +11,10 @@ internal class PostConfiguration : IEntityTypeConfiguration<Post>
table.ToTable("post");
table.OwnsMany(post => post.Media).WithOwner();
table.OwnsMany(post => post.Reactions).WithOwner();
table.Property<string>("PossibleReactionsJson")
.HasColumnName("possible_reactions");
table.Ignore(e => e.PossibleReactions);
}
}