// using System; using System.Collections.Generic; using FictionArchive.Service.ReportingService.Services; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using NodaTime; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace FictionArchive.Service.ReportingService.Migrations { [DbContext(typeof(ReportingDbContext))] partial class ReportingDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.11") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("FictionArchive.Service.ReportingService.Models.Job", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedTime") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasColumnType("text"); b.Property("ErrorMessage") .HasColumnType("text"); b.Property("JobType") .IsRequired() .HasColumnType("text"); b.Property("LastUpdatedTime") .HasColumnType("timestamp with time zone"); b.Property>("Metadata") .HasColumnType("jsonb"); b.Property("ParentJobId") .HasColumnType("uuid"); b.Property("Status") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("ParentJobId"); b.ToTable("Jobs"); }); modelBuilder.Entity("FictionArchive.Service.ReportingService.Models.Job", b => { b.HasOne("FictionArchive.Service.ReportingService.Models.Job", "ParentJob") .WithMany("ChildJobs") .HasForeignKey("ParentJobId") .OnDelete(DeleteBehavior.SetNull); b.Navigation("ParentJob"); }); modelBuilder.Entity("FictionArchive.Service.ReportingService.Models.Job", b => { b.Navigation("ChildJobs"); }); #pragma warning restore 612, 618 } } }