//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Newsbot.Collector.Database;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Newsbot.Collector.Database.Migrations
{
[DbContext(typeof(DatabaseContext))]
partial class DatabaseContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.7")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Newsbot.Collector.Domain.Entities.ArticlesEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AuthorImage")
.HasColumnType("text");
b.Property("AuthorName")
.IsRequired()
.HasColumnType("text");
b.Property("CodeIsCommit")
.HasColumnType("boolean");
b.Property("CodeIsRelease")
.HasColumnType("boolean");
b.Property("Description")
.IsRequired()
.HasColumnType("text");
b.Property("PubDate")
.HasColumnType("timestamp with time zone");
b.Property("SourceId")
.HasColumnType("uuid");
b.Property("Tags")
.IsRequired()
.HasColumnType("text");
b.Property("Thumbnail")
.IsRequired()
.HasColumnType("text");
b.Property("Title")
.IsRequired()
.HasColumnType("text");
b.Property("Url")
.HasColumnType("text");
b.Property("Video")
.IsRequired()
.HasColumnType("text");
b.Property("VideoHeight")
.HasColumnType("integer");
b.Property("VideoWidth")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("Articles");
});
modelBuilder.Entity("Newsbot.Collector.Domain.Entities.DiscordQueueEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ArticleId")
.HasColumnType("uuid");
b.HasKey("Id");
b.ToTable("DiscordQueue");
});
modelBuilder.Entity("Newsbot.Collector.Domain.Entities.DiscordWebhookEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Channel")
.IsRequired()
.HasColumnType("text");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("Server")
.IsRequired()
.HasColumnType("text");
b.Property("Url")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("DiscordWebhooks");
});
modelBuilder.Entity("Newsbot.Collector.Domain.Entities.IconEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("FileName")
.IsRequired()
.HasColumnType("text");
b.Property("Site")
.IsRequired()
.HasColumnType("text");
b.Property("SourceId")
.HasColumnType("uuid");
b.HasKey("Id");
b.ToTable("Icons");
});
modelBuilder.Entity("Newsbot.Collector.Domain.Entities.SourceEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Deleted")
.HasColumnType("boolean");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("Name")
.IsRequired()
.HasColumnType("text");
b.Property("Site")
.IsRequired()
.HasColumnType("text");
b.Property("Source")
.IsRequired()
.HasColumnType("text");
b.Property("Tags")
.IsRequired()
.HasColumnType("text");
b.Property("Type")
.IsRequired()
.HasColumnType("text");
b.Property("Url")
.IsRequired()
.HasColumnType("text");
b.Property("Value")
.IsRequired()
.HasColumnType("text");
b.Property("YoutubeId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Sources");
});
modelBuilder.Entity("Newsbot.Collector.Domain.Entities.SubscriptionEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CodeAllowCommits")
.HasColumnType("boolean");
b.Property("CodeAllowReleases")
.HasColumnType("boolean");
b.Property("DiscordWebHookId")
.HasColumnType("uuid");
b.Property("SourceId")
.HasColumnType("uuid");
b.HasKey("Id");
b.ToTable("Subscriptions");
});
#pragma warning restore 612, 618
}
}
}