// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Moonlight.ApiServer.Database; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Moonlight.ApiServer.Database.Migrations { [DbContext(typeof(CoreDataContext))] partial class CoreDataContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.11") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireCounter", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ExpireAt") .HasColumnType("timestamp with time zone"); b.Property("Key") .IsRequired() .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Value") .HasColumnType("bigint"); b.HasKey("Id"); b.HasIndex("ExpireAt"); b.HasIndex("Key", "Value"); b.ToTable("HangfireCounter"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireHash", b => { b.Property("Key") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Field") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("ExpireAt") .HasColumnType("timestamp with time zone"); b.Property("Value") .HasColumnType("text"); b.HasKey("Key", "Field"); b.HasIndex("ExpireAt"); b.ToTable("HangfireHash"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireJob", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("ExpireAt") .HasColumnType("timestamp with time zone"); b.Property("InvocationData") .IsRequired() .HasColumnType("text"); b.Property("StateId") .HasColumnType("bigint"); b.Property("StateName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("ExpireAt"); b.HasIndex("StateId"); b.HasIndex("StateName"); b.ToTable("HangfireJob"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireJobParameter", b => { b.Property("JobId") .HasColumnType("bigint"); b.Property("Name") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Value") .HasColumnType("text"); b.HasKey("JobId", "Name"); b.ToTable("HangfireJobParameter"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireList", b => { b.Property("Key") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Position") .HasColumnType("integer"); b.Property("ExpireAt") .HasColumnType("timestamp with time zone"); b.Property("Value") .HasColumnType("text"); b.HasKey("Key", "Position"); b.HasIndex("ExpireAt"); b.ToTable("HangfireList"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireLock", b => { b.Property("Id") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("AcquiredAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("HangfireLock"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireQueuedJob", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("FetchedAt") .IsConcurrencyToken() .HasColumnType("timestamp with time zone"); b.Property("JobId") .HasColumnType("bigint"); b.Property("Queue") .IsRequired() .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("JobId"); b.HasIndex("Queue", "FetchedAt"); b.ToTable("HangfireQueuedJob"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireServer", b => { b.Property("Id") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Heartbeat") .HasColumnType("timestamp with time zone"); b.Property("Queues") .IsRequired() .HasColumnType("text"); b.Property("StartedAt") .HasColumnType("timestamp with time zone"); b.Property("WorkerCount") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("Heartbeat"); b.ToTable("HangfireServer"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireSet", b => { b.Property("Key") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Value") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("ExpireAt") .HasColumnType("timestamp with time zone"); b.Property("Score") .HasColumnType("double precision"); b.HasKey("Key", "Value"); b.HasIndex("ExpireAt"); b.HasIndex("Key", "Score"); b.ToTable("HangfireSet"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireState", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Data") .IsRequired() .HasColumnType("text"); b.Property("JobId") .HasColumnType("bigint"); b.Property("Name") .IsRequired() .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Reason") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("JobId"); b.ToTable("HangfireState"); }); modelBuilder.Entity("Moonlight.ApiServer.Database.Entities.ApiKey", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("PermissionsJson") .IsRequired() .HasColumnType("jsonb"); b.HasKey("Id"); b.ToTable("Core_ApiKeys", (string)null); }); modelBuilder.Entity("Moonlight.ApiServer.Database.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Email") .IsRequired() .HasColumnType("text"); b.Property("Password") .IsRequired() .HasColumnType("text"); b.Property("PermissionsJson") .IsRequired() .HasColumnType("jsonb"); b.Property("TokenValidTimestamp") .HasColumnType("timestamp with time zone"); b.Property("Username") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Core_Users", (string)null); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireJob", b => { b.HasOne("Hangfire.EntityFrameworkCore.HangfireState", "State") .WithMany() .HasForeignKey("StateId"); b.Navigation("State"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireJobParameter", b => { b.HasOne("Hangfire.EntityFrameworkCore.HangfireJob", "Job") .WithMany("Parameters") .HasForeignKey("JobId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Job"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireQueuedJob", b => { b.HasOne("Hangfire.EntityFrameworkCore.HangfireJob", "Job") .WithMany("QueuedJobs") .HasForeignKey("JobId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Job"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireState", b => { b.HasOne("Hangfire.EntityFrameworkCore.HangfireJob", "Job") .WithMany("States") .HasForeignKey("JobId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Job"); }); modelBuilder.Entity("Hangfire.EntityFrameworkCore.HangfireJob", b => { b.Navigation("Parameters"); b.Navigation("QueuedJobs"); b.Navigation("States"); }); #pragma warning restore 612, 618 } } }