356 lines
14 KiB
C#
356 lines
14 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using DysonNetwork.Insight;
|
|
using DysonNetwork.Shared.Models;
|
|
using DysonNetwork.Shared.Models.Embed;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using NodaTime;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace DysonNetwork.Insight.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.SnThinkingSequence", 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<bool>("IsPublic")
|
|
.HasColumnType("boolean")
|
|
.HasColumnName("is_public");
|
|
|
|
b.Property<long>("PaidToken")
|
|
.HasColumnType("bigint")
|
|
.HasColumnName("paid_token");
|
|
|
|
b.Property<string>("Topic")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("topic");
|
|
|
|
b.Property<long>("TotalToken")
|
|
.HasColumnType("bigint")
|
|
.HasColumnName("total_token");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_thinking_sequences");
|
|
|
|
b.ToTable("thinking_sequences", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnThinkingThought", 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<List<SnCloudFileReferenceObject>>("Files")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("files");
|
|
|
|
b.Property<string>("ModelName")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("character varying(4096)")
|
|
.HasColumnName("model_name");
|
|
|
|
b.Property<List<SnThinkingMessagePart>>("Parts")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb")
|
|
.HasColumnName("parts");
|
|
|
|
b.Property<int>("Role")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("role");
|
|
|
|
b.Property<Guid>("SequenceId")
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("sequence_id");
|
|
|
|
b.Property<long>("TokenCount")
|
|
.HasColumnType("bigint")
|
|
.HasColumnName("token_count");
|
|
|
|
b.Property<Instant>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("updated_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_thinking_thoughts");
|
|
|
|
b.HasIndex("SequenceId")
|
|
.HasDatabaseName("ix_thinking_thoughts_sequence_id");
|
|
|
|
b.ToTable("thinking_thoughts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnUnpaidAccount", b =>
|
|
{
|
|
b.Property<Guid>("AccountId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid")
|
|
.HasColumnName("account_id");
|
|
|
|
b.Property<DateTime>("MarkedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("marked_at");
|
|
|
|
b.HasKey("AccountId")
|
|
.HasName("pk_unpaid_accounts");
|
|
|
|
b.ToTable("unpaid_accounts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnWebArticle", 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.ToTable("web_articles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnWebFeed", 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.Property<string>("VerificationKey")
|
|
.HasMaxLength(8192)
|
|
.HasColumnType("character varying(8192)")
|
|
.HasColumnName("verification_key");
|
|
|
|
b.Property<Instant?>("VerifiedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("verified_at");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("pk_web_feeds");
|
|
|
|
b.ToTable("web_feeds", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnWebFeedSubscription", 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("DysonNetwork.Shared.Models.SnThinkingThought", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnThinkingSequence", "Sequence")
|
|
.WithMany()
|
|
.HasForeignKey("SequenceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_thinking_thoughts_thinking_sequences_sequence_id");
|
|
|
|
b.Navigation("Sequence");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnWebArticle", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnWebFeed", "Feed")
|
|
.WithMany("Articles")
|
|
.HasForeignKey("FeedId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_web_articles_web_feeds_feed_id");
|
|
|
|
b.Navigation("Feed");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnWebFeedSubscription", b =>
|
|
{
|
|
b.HasOne("DysonNetwork.Shared.Models.SnWebFeed", "Feed")
|
|
.WithMany()
|
|
.HasForeignKey("FeedId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("fk_web_feed_subscriptions_web_feeds_feed_id");
|
|
|
|
b.Navigation("Feed");
|
|
});
|
|
|
|
modelBuilder.Entity("DysonNetwork.Shared.Models.SnWebFeed", b =>
|
|
{
|
|
b.Navigation("Articles");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|