2655 lines
105 KiB
C#
2655 lines
105 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text.Json;
|
|
using DysonNetwork.Shared.Models;
|
|
using DysonNetwork.Sphere;
|
|
using DysonNetwork.Sphere.WebReader;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using NodaTime;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace DysonNetwork.Sphere.Migrations
|
|
{
|
|
[DbContext(typeof(AppDatabase))]
|
|
partial class AppDatabaseModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "10.0.1")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatMember", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("AccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<Instant?>("BreakUntil")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("break_until");
|
|
|
|
b.Property<Guid>("ChatRoomId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("chat_room_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?>("InvitedById")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("invited_by_id");
|
|
|
|
b.Property<Instant?>("JoinedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("joined_at");
|
|
|
|
b.Property<Instant?>("LastReadAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_read_at");
|
|
|
|
b.Property<Instant?>("LeaveAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("leave_at");
|
|
|
|
b.Property<string>("Nick")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("nick");
|
|
|
|
b.Property<int>("Notify")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("notify");
|
|
|
|
b.Property<ChatTimeoutCause>("TimeoutCause")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("timeout_cause");
|
|
|
|
b.Property<Instant?>("TimeoutUntil")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("timeout_until");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_chat_members");
|
|
|
|
b.HasAlternateKey("ChatRoomId", "AccountId")
|
|
.HasName("ak_chat_members_chat_room_id_account_id");
|
|
|
|
b.HasIndex("InvitedById")
|
|
.HasDatabaseName("ix_chat_members_invited_by_id");
|
|
|
|
b.ToTable("chat_members", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatMessage", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<List<SnCloudFileReferenceObject>>("Attachments")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("attachments");
|
|
|
|
b.Property<Guid>("ChatRoomId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("chat_room_id");
|
|
|
|
b.Property<string>("Content")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("content");
|
|
|
|
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?>("EditedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("edited_at");
|
|
|
|
b.Property<Guid?>("ForwardedMessageId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("forwarded_message_id");
|
|
|
|
b.PrimitiveCollection<string>("MembersMentioned")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("members_mentioned");
|
|
|
|
b.Property<Dictionary<string, object>>("Meta")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("meta");
|
|
|
|
b.Property<string>("Nonce")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("character varying(36)")
|
|
.HasColumnName("nonce");
|
|
|
|
b.Property<Guid?>("RepliedMessageId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("replied_message_id");
|
|
|
|
b.Property<Guid>("SenderId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("sender_id");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_chat_messages");
|
|
|
|
b.HasIndex("ChatRoomId")
|
|
.HasDatabaseName("ix_chat_messages_chat_room_id");
|
|
|
|
b.HasIndex("ForwardedMessageId")
|
|
.HasDatabaseName("ix_chat_messages_forwarded_message_id");
|
|
|
|
b.HasIndex("RepliedMessageId")
|
|
.HasDatabaseName("ix_chat_messages_replied_message_id");
|
|
|
|
b.HasIndex("SenderId")
|
|
.HasDatabaseName("ix_chat_messages_sender_id");
|
|
|
|
b.ToTable("chat_messages", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatMessageReaction", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<int>("Attitude")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("attitude");
|
|
|
|
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>("MessageId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("message_id");
|
|
|
|
b.Property<Guid>("SenderId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("sender_id");
|
|
|
|
b.Property<string>("Symbol")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("symbol");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_chat_reactions");
|
|
|
|
b.HasIndex("MessageId")
|
|
.HasDatabaseName("ix_chat_reactions_message_id");
|
|
|
|
b.HasIndex("SenderId")
|
|
.HasDatabaseName("ix_chat_reactions_sender_id");
|
|
|
|
b.ToTable("chat_reactions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatRoom", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid?>("AccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<SnCloudFileReferenceObject>("Background")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("background");
|
|
|
|
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<string>("Description")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<bool>("IsCommunity")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_community");
|
|
|
|
b.Property<bool>("IsPublic")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_public");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<SnCloudFileReferenceObject>("Picture")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("picture");
|
|
|
|
b.Property<Guid?>("RealmId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("realm_id");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_chat_rooms");
|
|
|
|
b.ToTable("chat_rooms", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseActivity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("ActorId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("actor_id");
|
|
|
|
b.Property<Guid?>("ContentId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("content_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<string>("ErrorMessage")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("error_message");
|
|
|
|
b.Property<bool>("IsLocal")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_local");
|
|
|
|
b.Property<Guid?>("LocalAccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("local_account_id");
|
|
|
|
b.Property<Guid?>("LocalPostId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("local_post_id");
|
|
|
|
b.Property<string>("ObjectUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("object_uri");
|
|
|
|
b.Property<Instant?>("PublishedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("published_at");
|
|
|
|
b.Property<Dictionary<string, object>>("RawData")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("raw_data");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("status");
|
|
|
|
b.Property<Guid?>("TargetActorId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("target_actor_id");
|
|
|
|
b.Property<string>("TargetUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("target_uri");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("Uri")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("uri");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_fediverse_activities");
|
|
|
|
b.HasIndex("ActorId")
|
|
.HasDatabaseName("ix_fediverse_activities_actor_id");
|
|
|
|
b.HasIndex("ContentId")
|
|
.HasDatabaseName("ix_fediverse_activities_content_id");
|
|
|
|
b.HasIndex("TargetActorId")
|
|
.HasDatabaseName("ix_fediverse_activities_target_actor_id");
|
|
|
|
b.ToTable("fediverse_activities", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseActor", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("AvatarUrl")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("avatar_url");
|
|
|
|
b.Property<string>("Bio")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("bio");
|
|
|
|
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<string>("DisplayName")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("display_name");
|
|
|
|
b.Property<string>("FeaturedUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("featured_uri");
|
|
|
|
b.Property<string>("FollowersUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("followers_uri");
|
|
|
|
b.Property<string>("FollowingUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("following_uri");
|
|
|
|
b.Property<string>("HeaderUrl")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("header_url");
|
|
|
|
b.Property<string>("InboxUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("inbox_uri");
|
|
|
|
b.Property<Guid>("InstanceId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("instance_id");
|
|
|
|
b.Property<bool>("IsBot")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_bot");
|
|
|
|
b.Property<bool>("IsDiscoverable")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_discoverable");
|
|
|
|
b.Property<bool>("IsLocked")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_locked");
|
|
|
|
b.Property<Instant?>("LastActivityAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_activity_at");
|
|
|
|
b.Property<Instant?>("LastFetchedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_fetched_at");
|
|
|
|
b.Property<Dictionary<string, object>>("Metadata")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("metadata");
|
|
|
|
b.Property<string>("OutboxUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("outbox_uri");
|
|
|
|
b.Property<string>("PublicKey")
|
|
.HasMaxLength(8192)
|
|
.HasColumnType("character varying(8192)")
|
|
.HasColumnName("public_key");
|
|
|
|
b.Property<string>("PublicKeyId")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("public_key_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("Uri")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("uri");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("username");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_fediverse_actors");
|
|
|
|
b.HasIndex("InstanceId")
|
|
.HasDatabaseName("ix_fediverse_actors_instance_id");
|
|
|
|
b.HasIndex("Uri")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_fediverse_actors_uri");
|
|
|
|
b.ToTable("fediverse_actors", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseContent", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("ActorId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("actor_id");
|
|
|
|
b.Property<string>("AnnouncedContentUri")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("announced_content_uri");
|
|
|
|
b.Property<List<ContentAttachment>>("Attachments")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("attachments");
|
|
|
|
b.Property<int>("BoostCount")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("boost_count");
|
|
|
|
b.Property<string>("Content")
|
|
.HasColumnType("text")
|
|
.HasColumnName("content");
|
|
|
|
b.Property<string>("ContentHtml")
|
|
.HasColumnType("text")
|
|
.HasColumnName("content_html");
|
|
|
|
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?>("EditedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("edited_at");
|
|
|
|
b.Property<List<ContentEmoji>>("Emojis")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("emojis");
|
|
|
|
b.Property<string>("InReplyTo")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("in_reply_to");
|
|
|
|
b.Property<Guid>("InstanceId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("instance_id");
|
|
|
|
b.Property<bool>("IsSensitive")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_sensitive");
|
|
|
|
b.Property<string>("Language")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("language");
|
|
|
|
b.Property<int>("LikeCount")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("like_count");
|
|
|
|
b.Property<Guid?>("LocalPostId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("local_post_id");
|
|
|
|
b.Property<List<ContentMention>>("Mentions")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("mentions");
|
|
|
|
b.Property<Dictionary<string, object>>("Metadata")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("metadata");
|
|
|
|
b.Property<Instant?>("PublishedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("published_at");
|
|
|
|
b.Property<int>("ReplyCount")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("reply_count");
|
|
|
|
b.Property<string>("Summary")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("summary");
|
|
|
|
b.Property<List<ContentTag>>("Tags")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("tags");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("title");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("Uri")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("uri");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_fediverse_contents");
|
|
|
|
b.HasIndex("ActorId")
|
|
.HasDatabaseName("ix_fediverse_contents_actor_id");
|
|
|
|
b.HasIndex("InstanceId")
|
|
.HasDatabaseName("ix_fediverse_contents_instance_id");
|
|
|
|
b.HasIndex("Uri")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_fediverse_contents_uri");
|
|
|
|
b.ToTable("fediverse_contents", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseInstance", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("BlockReason")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("block_reason");
|
|
|
|
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<string>("Description")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<string>("Domain")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("domain");
|
|
|
|
b.Property<bool>("IsBlocked")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_blocked");
|
|
|
|
b.Property<bool>("IsSilenced")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_silenced");
|
|
|
|
b.Property<Instant?>("LastActivityAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_activity_at");
|
|
|
|
b.Property<Instant?>("LastFetchedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("last_fetched_at");
|
|
|
|
b.Property<Dictionary<string, object>>("Metadata")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("metadata");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("character varying(512)")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<string>("Software")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("software");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("version");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_fediverse_instances");
|
|
|
|
b.HasIndex("Domain")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_fediverse_instances_domain");
|
|
|
|
b.ToTable("fediverse_instances", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseReaction", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("ActorId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("actor_id");
|
|
|
|
b.Property<Guid>("ContentId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("content_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<string>("Emoji")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("character varying(64)")
|
|
.HasColumnName("emoji");
|
|
|
|
b.Property<bool>("IsLocal")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_local");
|
|
|
|
b.Property<Guid?>("LocalAccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("local_account_id");
|
|
|
|
b.Property<Guid?>("LocalReactionId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("local_reaction_id");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("Uri")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("character varying(2048)")
|
|
.HasColumnName("uri");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_fediverse_reactions");
|
|
|
|
b.HasIndex("ActorId")
|
|
.HasDatabaseName("ix_fediverse_reactions_actor_id");
|
|
|
|
b.HasIndex("ContentId")
|
|
.HasDatabaseName("ix_fediverse_reactions_content_id");
|
|
|
|
b.ToTable("fediverse_reactions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseRelationship", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("ActorId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("actor_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?>("FollowedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("followed_at");
|
|
|
|
b.Property<Instant?>("FollowedBackAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("followed_back_at");
|
|
|
|
b.Property<bool>("IsBlocking")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_blocking");
|
|
|
|
b.Property<bool>("IsFollowedBy")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_followed_by");
|
|
|
|
b.Property<bool>("IsFollowing")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_following");
|
|
|
|
b.Property<bool>("IsLocalActor")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_local_actor");
|
|
|
|
b.Property<bool>("IsMuting")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_muting");
|
|
|
|
b.Property<Guid?>("LocalAccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("local_account_id");
|
|
|
|
b.Property<Guid?>("LocalPublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("local_publisher_id");
|
|
|
|
b.Property<string>("RejectReason")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("reject_reason");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("state");
|
|
|
|
b.Property<Guid>("TargetActorId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("target_actor_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_fediverse_relationships");
|
|
|
|
b.HasIndex("ActorId")
|
|
.HasDatabaseName("ix_fediverse_relationships_actor_id");
|
|
|
|
b.HasIndex("TargetActorId")
|
|
.HasDatabaseName("ix_fediverse_relationships_target_actor_id");
|
|
|
|
b.ToTable("fediverse_relationships", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPoll", 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<string>("Description")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<Instant?>("EndedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("ended_at");
|
|
|
|
b.Property<bool>("IsAnonymous")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_anonymous");
|
|
|
|
b.Property<Guid>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_id");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("title");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_polls");
|
|
|
|
b.HasIndex("PublisherId")
|
|
.HasDatabaseName("ix_polls_publisher_id");
|
|
|
|
b.ToTable("polls", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPollAnswer", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("AccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<Dictionary<string, JsonElement>>("Answer")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("answer");
|
|
|
|
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>("PollId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("poll_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_poll_answers");
|
|
|
|
b.HasIndex("PollId")
|
|
.HasDatabaseName("ix_poll_answers_poll_id");
|
|
|
|
b.ToTable("poll_answers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPollQuestion", 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<string>("Description")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<bool>("IsRequired")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_required");
|
|
|
|
b.Property<List<SnPollOption>>("Options")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("options");
|
|
|
|
b.Property<int>("Order")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("order");
|
|
|
|
b.Property<Guid>("PollId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("poll_id");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("title");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_poll_questions");
|
|
|
|
b.HasIndex("PollId")
|
|
.HasDatabaseName("ix_poll_questions_poll_id");
|
|
|
|
b.ToTable("poll_questions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPost", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<List<SnCloudFileReferenceObject>>("Attachments")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("attachments");
|
|
|
|
b.Property<decimal>("AwardedScore")
|
|
.HasColumnType("numeric")
|
|
.HasColumnName("awarded_score");
|
|
|
|
b.Property<string>("Content")
|
|
.HasColumnType("text")
|
|
.HasColumnName("content");
|
|
|
|
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<string>("Description")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<int>("Downvotes")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("downvotes");
|
|
|
|
b.Property<Instant?>("EditedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("edited_at");
|
|
|
|
b.Property<PostEmbedView>("EmbedView")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("embed_view");
|
|
|
|
b.Property<bool>("ForwardedGone")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("forwarded_gone");
|
|
|
|
b.Property<Guid?>("ForwardedPostId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("forwarded_post_id");
|
|
|
|
b.Property<Dictionary<string, object>>("Meta")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("meta");
|
|
|
|
b.Property<int?>("PinMode")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("pin_mode");
|
|
|
|
b.Property<Instant?>("PublishedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("published_at");
|
|
|
|
b.Property<Guid>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_id");
|
|
|
|
b.Property<Guid?>("RealmId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("realm_id");
|
|
|
|
b.Property<bool>("RepliedGone")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("replied_gone");
|
|
|
|
b.Property<Guid?>("RepliedPostId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("replied_post_id");
|
|
|
|
b.PrimitiveCollection<string>("SensitiveMarks")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("sensitive_marks");
|
|
|
|
b.Property<string>("Slug")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("slug");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("title");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<int>("Upvotes")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("upvotes");
|
|
|
|
b.Property<int>("ViewsTotal")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("views_total");
|
|
|
|
b.Property<int>("ViewsUnique")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("views_unique");
|
|
|
|
b.Property<int>("Visibility")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("visibility");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_posts");
|
|
|
|
b.HasIndex("ForwardedPostId")
|
|
.HasDatabaseName("ix_posts_forwarded_post_id");
|
|
|
|
b.HasIndex("PublisherId")
|
|
.HasDatabaseName("ix_posts_publisher_id");
|
|
|
|
b.HasIndex("RepliedPostId")
|
|
.HasDatabaseName("ix_posts_replied_post_id");
|
|
|
|
b.ToTable("posts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostAward", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("AccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<decimal>("Amount")
|
|
.HasColumnType("numeric")
|
|
.HasColumnName("amount");
|
|
|
|
b.Property<int>("Attitude")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("attitude");
|
|
|
|
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<string>("Message")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("message");
|
|
|
|
b.Property<Guid>("PostId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("post_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_post_awards");
|
|
|
|
b.HasIndex("PostId")
|
|
.HasDatabaseName("ix_post_awards_post_id");
|
|
|
|
b.ToTable("post_awards", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostCategory", 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<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("character varying(128)")
|
|
.HasColumnName("slug");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_post_categories");
|
|
|
|
b.ToTable("post_categories", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostCategorySubscription", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("AccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<Guid?>("CategoryId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("category_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?>("TagId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("tag_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_post_category_subscriptions");
|
|
|
|
b.HasIndex("CategoryId")
|
|
.HasDatabaseName("ix_post_category_subscriptions_category_id");
|
|
|
|
b.HasIndex("TagId")
|
|
.HasDatabaseName("ix_post_category_subscriptions_tag_id");
|
|
|
|
b.ToTable("post_category_subscriptions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostCollection", 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<string>("Description")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<Guid>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_id");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("character varying(128)")
|
|
.HasColumnName("slug");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_post_collections");
|
|
|
|
b.HasIndex("PublisherId")
|
|
.HasDatabaseName("ix_post_collections_publisher_id");
|
|
|
|
b.ToTable("post_collections", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostFeaturedRecord", 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.Shared.Models.SnPostReaction", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid>("AccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<int>("Attitude")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("attitude");
|
|
|
|
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>("PostId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("post_id");
|
|
|
|
b.Property<string>("Symbol")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("symbol");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_post_reactions");
|
|
|
|
b.HasIndex("PostId")
|
|
.HasDatabaseName("ix_post_reactions_post_id");
|
|
|
|
b.ToTable("post_reactions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostTag", 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<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("character varying(128)")
|
|
.HasColumnName("slug");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_post_tags");
|
|
|
|
b.ToTable("post_tags", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisher", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<Guid?>("AccountId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<SnCloudFileReferenceObject>("Background")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("background");
|
|
|
|
b.Property<string>("Bio")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("bio");
|
|
|
|
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<Dictionary<string, object>>("Meta")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("meta");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<string>("Nick")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)")
|
|
.HasColumnName("nick");
|
|
|
|
b.Property<SnCloudFileReferenceObject>("Picture")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("picture");
|
|
|
|
b.Property<Guid?>("RealmId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("realm_id");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("type");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<SnVerificationMark>("Verification")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("verification");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_publishers");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_publishers_name");
|
|
|
|
b.ToTable("publishers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisherFeature", 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?>("ExpiredAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("expired_at");
|
|
|
|
b.Property<string>("Flag")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("flag");
|
|
|
|
b.Property<Guid>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_publisher_features");
|
|
|
|
b.HasIndex("PublisherId")
|
|
.HasDatabaseName("ix_publisher_features_publisher_id");
|
|
|
|
b.ToTable("publisher_features", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisherMember", b =>
|
|
{
|
|
b.Property<Guid>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_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<Instant?>("JoinedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("joined_at");
|
|
|
|
b.Property<int>("Role")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("role");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("PublisherId", "AccountId")
|
|
.HasName("pk_publisher_members");
|
|
|
|
b.ToTable("publisher_members", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisherSubscription", 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>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_id");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("status");
|
|
|
|
b.Property<int>("Tier")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("tier");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_publisher_subscriptions");
|
|
|
|
b.HasIndex("PublisherId")
|
|
.HasDatabaseName("ix_publisher_subscriptions_publisher_id");
|
|
|
|
b.ToTable("publisher_subscriptions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnRealtimeCall", 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?>("EndedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("ended_at");
|
|
|
|
b.Property<string>("ProviderName")
|
|
.HasColumnType("text")
|
|
.HasColumnName("provider_name");
|
|
|
|
b.Property<Guid>("RoomId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("room_id");
|
|
|
|
b.Property<Guid>("SenderId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("sender_id");
|
|
|
|
b.Property<string>("SessionId")
|
|
.HasColumnType("text")
|
|
.HasColumnName("session_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("UpstreamConfigJson")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("upstream");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_chat_realtime_call");
|
|
|
|
b.HasIndex("RoomId")
|
|
.HasDatabaseName("ix_chat_realtime_call_room_id");
|
|
|
|
b.HasIndex("SenderId")
|
|
.HasDatabaseName("ix_chat_realtime_call_sender_id");
|
|
|
|
b.ToTable("chat_realtime_call", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnSticker", 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<SnCloudFileReferenceObject>("Image")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("image");
|
|
|
|
b.Property<Guid>("PackId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("pack_id");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("character varying(128)")
|
|
.HasColumnName("slug");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_stickers");
|
|
|
|
b.HasIndex("PackId")
|
|
.HasDatabaseName("ix_stickers_pack_id");
|
|
|
|
b.HasIndex("Slug")
|
|
.HasDatabaseName("ix_stickers_slug");
|
|
|
|
b.ToTable("stickers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.StickerPack", 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<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<SnCloudFileReferenceObject>("Icon")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("icon");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("character varying(1024)")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<string>("Prefix")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("character varying(128)")
|
|
.HasColumnName("prefix");
|
|
|
|
b.Property<Guid>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_sticker_packs");
|
|
|
|
b.HasIndex("Prefix")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_sticker_packs_prefix");
|
|
|
|
b.HasIndex("PublisherId")
|
|
.HasDatabaseName("ix_sticker_packs_publisher_id");
|
|
|
|
b.ToTable("sticker_packs", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.StickerPackOwnership", 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>("PackId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("pack_id");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_sticker_pack_ownerships");
|
|
|
|
b.HasIndex("PackId")
|
|
.HasDatabaseName("ix_sticker_pack_ownerships_pack_id");
|
|
|
|
b.ToTable("sticker_pack_ownerships", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Sphere.WebReader.WebArticle", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("Author")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("author");
|
|
|
|
b.Property<string>("Content")
|
|
.HasColumnType("text")
|
|
.HasColumnName("content");
|
|
|
|
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<Dictionary<string, object>>("Meta")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("meta");
|
|
|
|
b.Property<LinkEmbed>("Preview")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("preview");
|
|
|
|
b.Property<DateTime?>("PublishedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("published_at");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("title");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("Url")
|
|
.IsRequired()
|
|
.HasMaxLength(8192)
|
|
.HasColumnType("character varying(8192)")
|
|
.HasColumnName("url");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_web_articles");
|
|
|
|
b.HasIndex("FeedId")
|
|
.HasDatabaseName("ix_web_articles_feed_id");
|
|
|
|
b.HasIndex("Url")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_web_articles_url");
|
|
|
|
b.ToTable("web_articles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Sphere.WebReader.WebFeed", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<WebFeedConfig>("Config")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("config");
|
|
|
|
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<string>("Description")
|
|
.HasMaxLength(8192)
|
|
.HasColumnType("character varying(8192)")
|
|
.HasColumnName("description");
|
|
|
|
b.Property<LinkEmbed>("Preview")
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("preview");
|
|
|
|
b.Property<Guid>("PublisherId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("publisher_id");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("title");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.Property<string>("Url")
|
|
.IsRequired()
|
|
.HasMaxLength(8192)
|
|
.HasColumnType("character varying(8192)")
|
|
.HasColumnName("url");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_web_feeds");
|
|
|
|
b.HasIndex("PublisherId")
|
|
.HasDatabaseName("ix_web_feeds_publisher_id");
|
|
|
|
b.HasIndex("Url")
|
|
.IsUnique()
|
|
.HasDatabaseName("ix_web_feeds_url");
|
|
|
|
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("SnPostSnPostCategory", b =>
|
|
{
|
|
b.Property<Guid>("CategoriesId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("categories_id");
|
|
|
|
b.Property<Guid>("PostsId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("posts_id");
|
|
|
|
b.HasKey("CategoriesId", "PostsId")
|
|
.HasName("pk_post_category_links");
|
|
|
|
b.HasIndex("PostsId")
|
|
.HasDatabaseName("ix_post_category_links_posts_id");
|
|
|
|
b.ToTable("post_category_links", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("SnPostSnPostCollection", b =>
|
|
{
|
|
b.Property<Guid>("CollectionsId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("collections_id");
|
|
|
|
b.Property<Guid>("PostsId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("posts_id");
|
|
|
|
b.HasKey("CollectionsId", "PostsId")
|
|
.HasName("pk_post_collection_links");
|
|
|
|
b.HasIndex("PostsId")
|
|
.HasDatabaseName("ix_post_collection_links_posts_id");
|
|
|
|
b.ToTable("post_collection_links", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("SnPostSnPostTag", b =>
|
|
{
|
|
b.Property<Guid>("PostsId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("posts_id");
|
|
|
|
b.Property<Guid>("TagsId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("tags_id");
|
|
|
|
b.HasKey("PostsId", "TagsId")
|
|
.HasName("pk_post_tag_links");
|
|
|
|
b.HasIndex("TagsId")
|
|
.HasDatabaseName("ix_post_tag_links_tags_id");
|
|
|
|
b.ToTable("post_tag_links", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatMember", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatRoom", "ChatRoom")
|
|
.WithMany("Members")
|
|
.HasForeignKey("ChatRoomId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_chat_members_chat_rooms_chat_room_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatMember", "InvitedBy")
|
|
.WithMany()
|
|
.HasForeignKey("InvitedById")
|
|
.HasConstraintName("fk_chat_members_chat_members_invited_by_id");
|
|
|
|
b.Navigation("ChatRoom");
|
|
|
|
b.Navigation("InvitedBy");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatMessage", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatRoom", "ChatRoom")
|
|
.WithMany()
|
|
.HasForeignKey("ChatRoomId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_chat_messages_chat_rooms_chat_room_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatMessage", "ForwardedMessage")
|
|
.WithMany()
|
|
.HasForeignKey("ForwardedMessageId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.HasConstraintName("fk_chat_messages_chat_messages_forwarded_message_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatMessage", "RepliedMessage")
|
|
.WithMany()
|
|
.HasForeignKey("RepliedMessageId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.HasConstraintName("fk_chat_messages_chat_messages_replied_message_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatMember", "Sender")
|
|
.WithMany()
|
|
.HasForeignKey("SenderId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_chat_messages_chat_members_sender_id");
|
|
|
|
b.Navigation("ChatRoom");
|
|
|
|
b.Navigation("ForwardedMessage");
|
|
|
|
b.Navigation("RepliedMessage");
|
|
|
|
b.Navigation("Sender");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatMessageReaction", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatMessage", "Message")
|
|
.WithMany("Reactions")
|
|
.HasForeignKey("MessageId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_chat_reactions_chat_messages_message_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatMember", "Sender")
|
|
.WithMany()
|
|
.HasForeignKey("SenderId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_chat_reactions_chat_members_sender_id");
|
|
|
|
b.Navigation("Message");
|
|
|
|
b.Navigation("Sender");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseActivity", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseActor", "Actor")
|
|
.WithMany("Activities")
|
|
.HasForeignKey("ActorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_activities_fediverse_actors_actor_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseContent", "Content")
|
|
.WithMany("Activities")
|
|
.HasForeignKey("ContentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.HasConstraintName("fk_fediverse_activities_fediverse_contents_content_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseActor", "TargetActor")
|
|
.WithMany()
|
|
.HasForeignKey("TargetActorId")
|
|
.HasConstraintName("fk_fediverse_activities_fediverse_actors_target_actor_id");
|
|
|
|
b.Navigation("Actor");
|
|
|
|
b.Navigation("Content");
|
|
|
|
b.Navigation("TargetActor");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseActor", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseInstance", "Instance")
|
|
.WithMany("Actors")
|
|
.HasForeignKey("InstanceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_actors_fediverse_instances_instance_id");
|
|
|
|
b.Navigation("Instance");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseContent", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseActor", "Actor")
|
|
.WithMany("Contents")
|
|
.HasForeignKey("ActorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_contents_fediverse_actors_actor_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseInstance", "Instance")
|
|
.WithMany("Contents")
|
|
.HasForeignKey("InstanceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_contents_fediverse_instances_instance_id");
|
|
|
|
b.Navigation("Actor");
|
|
|
|
b.Navigation("Instance");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseReaction", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseActor", "Actor")
|
|
.WithMany()
|
|
.HasForeignKey("ActorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_reactions_fediverse_actors_actor_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseContent", "Content")
|
|
.WithMany("Reactions")
|
|
.HasForeignKey("ContentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_reactions_fediverse_contents_content_id");
|
|
|
|
b.Navigation("Actor");
|
|
|
|
b.Navigation("Content");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseRelationship", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseActor", "Actor")
|
|
.WithMany("FollowingRelationships")
|
|
.HasForeignKey("ActorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_relationships_fediverse_actors_actor_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnFediverseActor", "TargetActor")
|
|
.WithMany("FollowerRelationships")
|
|
.HasForeignKey("TargetActorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_fediverse_relationships_fediverse_actors_target_actor_id");
|
|
|
|
b.Navigation("Actor");
|
|
|
|
b.Navigation("TargetActor");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPoll", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany("Polls")
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_polls_publishers_publisher_id");
|
|
|
|
b.Navigation("Publisher");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPollAnswer", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPoll", "Poll")
|
|
.WithMany()
|
|
.HasForeignKey("PollId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_poll_answers_polls_poll_id");
|
|
|
|
b.Navigation("Poll");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPollQuestion", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPoll", "Poll")
|
|
.WithMany("Questions")
|
|
.HasForeignKey("PollId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_poll_questions_polls_poll_id");
|
|
|
|
b.Navigation("Poll");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPost", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", "ForwardedPost")
|
|
.WithMany()
|
|
.HasForeignKey("ForwardedPostId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.HasConstraintName("fk_posts_posts_forwarded_post_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany("Posts")
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_posts_publishers_publisher_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", "RepliedPost")
|
|
.WithMany()
|
|
.HasForeignKey("RepliedPostId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.HasConstraintName("fk_posts_posts_replied_post_id");
|
|
|
|
b.Navigation("ForwardedPost");
|
|
|
|
b.Navigation("Publisher");
|
|
|
|
b.Navigation("RepliedPost");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostAward", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", "Post")
|
|
.WithMany("Awards")
|
|
.HasForeignKey("PostId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_awards_posts_post_id");
|
|
|
|
b.Navigation("Post");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostCategorySubscription", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPostCategory", "Category")
|
|
.WithMany()
|
|
.HasForeignKey("CategoryId")
|
|
.HasConstraintName("fk_post_category_subscriptions_post_categories_category_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPostTag", "Tag")
|
|
.WithMany()
|
|
.HasForeignKey("TagId")
|
|
.HasConstraintName("fk_post_category_subscriptions_post_tags_tag_id");
|
|
|
|
b.Navigation("Category");
|
|
|
|
b.Navigation("Tag");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostCollection", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany("Collections")
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_collections_publishers_publisher_id");
|
|
|
|
b.Navigation("Publisher");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostFeaturedRecord", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", "Post")
|
|
.WithMany("FeaturedRecords")
|
|
.HasForeignKey("PostId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_featured_records_posts_post_id");
|
|
|
|
b.Navigation("Post");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPostReaction", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", "Post")
|
|
.WithMany("Reactions")
|
|
.HasForeignKey("PostId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_reactions_posts_post_id");
|
|
|
|
b.Navigation("Post");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisherFeature", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany("Features")
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_publisher_features_publishers_publisher_id");
|
|
|
|
b.Navigation("Publisher");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisherMember", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany("Members")
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_publisher_members_publishers_publisher_id");
|
|
|
|
b.Navigation("Publisher");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisherSubscription", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany("Subscriptions")
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_publisher_subscriptions_publishers_publisher_id");
|
|
|
|
b.Navigation("Publisher");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnRealtimeCall", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatRoom", "Room")
|
|
.WithMany()
|
|
.HasForeignKey("RoomId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_chat_realtime_call_chat_rooms_room_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnChatMember", "Sender")
|
|
.WithMany()
|
|
.HasForeignKey("SenderId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_chat_realtime_call_chat_members_sender_id");
|
|
|
|
b.Navigation("Room");
|
|
|
|
b.Navigation("Sender");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnSticker", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.StickerPack", "Pack")
|
|
.WithMany("Stickers")
|
|
.HasForeignKey("PackId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_stickers_sticker_packs_pack_id");
|
|
|
|
b.Navigation("Pack");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.StickerPack", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany()
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_sticker_packs_publishers_publisher_id");
|
|
|
|
b.Navigation("Publisher");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.StickerPackOwnership", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.StickerPack", "Pack")
|
|
.WithMany("Ownerships")
|
|
.HasForeignKey("PackId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_sticker_pack_ownerships_sticker_packs_pack_id");
|
|
|
|
b.Navigation("Pack");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Sphere.WebReader.WebArticle", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Sphere.WebReader.WebFeed", "Feed")
|
|
.WithMany("Articles")
|
|
.HasForeignKey("FeedId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_web_articles_web_feeds_feed_id");
|
|
|
|
b.Navigation("Feed");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Sphere.WebReader.WebFeed", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPublisher", "Publisher")
|
|
.WithMany()
|
|
.HasForeignKey("PublisherId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_web_feeds_publishers_publisher_id");
|
|
|
|
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("SnPostSnPostCategory", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPostCategory", null)
|
|
.WithMany()
|
|
.HasForeignKey("CategoriesId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_category_links_post_categories_categories_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", null)
|
|
.WithMany()
|
|
.HasForeignKey("PostsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_category_links_posts_posts_id");
|
|
});
|
|
|
|
modelBuilder.Entity("SnPostSnPostCollection", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPostCollection", null)
|
|
.WithMany()
|
|
.HasForeignKey("CollectionsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_collection_links_post_collections_collections_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", null)
|
|
.WithMany()
|
|
.HasForeignKey("PostsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_collection_links_posts_posts_id");
|
|
});
|
|
|
|
modelBuilder.Entity("SnPostSnPostTag", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPost", null)
|
|
.WithMany()
|
|
.HasForeignKey("PostsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_tag_links_posts_posts_id");
|
|
|
|
b.HasOne("DysonNetwork.Shared.Models.SnPostTag", null)
|
|
.WithMany()
|
|
.HasForeignKey("TagsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_post_tag_links_post_tags_tags_id");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatMessage", b =>
|
|
{
|
|
b.Navigation("Reactions");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnChatRoom", b =>
|
|
{
|
|
b.Navigation("Members");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseActor", b =>
|
|
{
|
|
b.Navigation("Activities");
|
|
|
|
b.Navigation("Contents");
|
|
|
|
b.Navigation("FollowerRelationships");
|
|
|
|
b.Navigation("FollowingRelationships");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseContent", b =>
|
|
{
|
|
b.Navigation("Activities");
|
|
|
|
b.Navigation("Reactions");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnFediverseInstance", b =>
|
|
{
|
|
b.Navigation("Actors");
|
|
|
|
b.Navigation("Contents");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPoll", b =>
|
|
{
|
|
b.Navigation("Questions");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPost", b =>
|
|
{
|
|
b.Navigation("Awards");
|
|
|
|
b.Navigation("FeaturedRecords");
|
|
|
|
b.Navigation("Reactions");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnPublisher", b =>
|
|
{
|
|
b.Navigation("Collections");
|
|
|
|
b.Navigation("Features");
|
|
|
|
b.Navigation("Members");
|
|
|
|
b.Navigation("Polls");
|
|
|
|
b.Navigation("Posts");
|
|
|
|
b.Navigation("Subscriptions");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.StickerPack", b =>
|
|
{
|
|
b.Navigation("Ownerships");
|
|
|
|
b.Navigation("Stickers");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Sphere.WebReader.WebFeed", b =>
|
|
{
|
|
b.Navigation("Articles");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|