✨ Web feed subcription
This commit is contained in:
2002
DysonNetwork.Sphere/Migrations/20250820060654_AddWebFeedSubscription.Designer.cs
generated
Normal file
2002
DysonNetwork.Sphere/Migrations/20250820060654_AddWebFeedSubscription.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using NodaTime;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DysonNetwork.Sphere.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddWebFeedSubscription : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "web_feed_subscriptions",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
feed_id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
account_id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
created_at = table.Column<Instant>(type: "timestamp with time zone", nullable: false),
|
||||
updated_at = table.Column<Instant>(type: "timestamp with time zone", nullable: false),
|
||||
deleted_at = table.Column<Instant>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("pk_web_feed_subscriptions", x => x.id);
|
||||
table.ForeignKey(
|
||||
name: "fk_web_feed_subscriptions_web_feeds_feed_id",
|
||||
column: x => x.feed_id,
|
||||
principalTable: "web_feeds",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "ix_web_feed_subscriptions_feed_id",
|
||||
table: "web_feed_subscriptions",
|
||||
column: "feed_id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "web_feed_subscriptions");
|
||||
}
|
||||
}
|
||||
}
|
@@ -1458,6 +1458,42 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
b.ToTable("web_feeds", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Sphere.WebReader.WebFeedSubscription", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<Guid>("AccountId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("account_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<Guid>("FeedId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("feed_id");
|
||||
|
||||
b.Property<Instant>("UpdatedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("updated_at");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_web_feed_subscriptions");
|
||||
|
||||
b.HasIndex("FeedId")
|
||||
.HasDatabaseName("ix_web_feed_subscriptions_feed_id");
|
||||
|
||||
b.ToTable("web_feed_subscriptions", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PostPostCategory", b =>
|
||||
{
|
||||
b.Property<Guid>("CategoriesId")
|
||||
@@ -1808,7 +1844,7 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
modelBuilder.Entity("DysonNetwork.Sphere.Sticker.StickerPackOwnership", b =>
|
||||
{
|
||||
b.HasOne("DysonNetwork.Sphere.Sticker.StickerPack", "Pack")
|
||||
.WithMany()
|
||||
.WithMany("Ownerships")
|
||||
.HasForeignKey("PackId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
@@ -1841,6 +1877,18 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
b.Navigation("Publisher");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Sphere.WebReader.WebFeedSubscription", b =>
|
||||
{
|
||||
b.HasOne("DysonNetwork.Sphere.WebReader.WebFeed", "Feed")
|
||||
.WithMany()
|
||||
.HasForeignKey("FeedId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_web_feed_subscriptions_web_feeds_feed_id");
|
||||
|
||||
b.Navigation("Feed");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PostPostCategory", b =>
|
||||
{
|
||||
b.HasOne("DysonNetwork.Sphere.Post.PostCategory", null)
|
||||
@@ -1936,6 +1984,8 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Sphere.Sticker.StickerPack", b =>
|
||||
{
|
||||
b.Navigation("Ownerships");
|
||||
|
||||
b.Navigation("Stickers");
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user