Post featured record

This commit is contained in:
2025-08-12 12:17:26 +08:00
parent 05c6d67c03
commit 616491e6d8
6 changed files with 2055 additions and 2 deletions

View File

@@ -724,6 +724,46 @@ namespace DysonNetwork.Sphere.Migrations
b.ToTable("post_collections", (string)null);
});
modelBuilder.Entity("DysonNetwork.Sphere.Post.PostFeaturedRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<Instant>("CreatedAt")
.HasColumnType("timestamp with time zone")
.HasColumnName("created_at");
b.Property<Instant?>("DeletedAt")
.HasColumnType("timestamp with time zone")
.HasColumnName("deleted_at");
b.Property<Instant?>("FeaturedAt")
.HasColumnType("timestamp with time zone")
.HasColumnName("featured_at");
b.Property<Guid>("PostId")
.HasColumnType("uuid")
.HasColumnName("post_id");
b.Property<int>("SocialCredits")
.HasColumnType("integer")
.HasColumnName("social_credits");
b.Property<Instant>("UpdatedAt")
.HasColumnType("timestamp with time zone")
.HasColumnName("updated_at");
b.HasKey("Id")
.HasName("pk_post_featured_records");
b.HasIndex("PostId")
.HasDatabaseName("ix_post_featured_records_post_id");
b.ToTable("post_featured_records", (string)null);
});
modelBuilder.Entity("DysonNetwork.Sphere.Post.PostReaction", b =>
{
b.Property<Guid>("Id")
@@ -1637,6 +1677,18 @@ namespace DysonNetwork.Sphere.Migrations
b.Navigation("Publisher");
});
modelBuilder.Entity("DysonNetwork.Sphere.Post.PostFeaturedRecord", b =>
{
b.HasOne("DysonNetwork.Sphere.Post.Post", "Post")
.WithMany()
.HasForeignKey("PostId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_post_featured_records_posts_post_id");
b.Navigation("Post");
});
modelBuilder.Entity("DysonNetwork.Sphere.Post.PostReaction", b =>
{
b.HasOne("DysonNetwork.Sphere.Post.Post", "Post")