diff --git a/ErsatzTV.Infrastructure.MySql/Migrations/20260722194743_Add_ProgramSchedule_PadToNearestMinute.Designer.cs b/ErsatzTV.Infrastructure.MySql/Migrations/20260723061238_Add_ProgramSchedule_PadToNearestMinute.Designer.cs similarity index 99% rename from ErsatzTV.Infrastructure.MySql/Migrations/20260722194743_Add_ProgramSchedule_PadToNearestMinute.Designer.cs rename to ErsatzTV.Infrastructure.MySql/Migrations/20260723061238_Add_ProgramSchedule_PadToNearestMinute.Designer.cs index cbe30639b..d2e6b1d1a 100644 --- a/ErsatzTV.Infrastructure.MySql/Migrations/20260722194743_Add_ProgramSchedule_PadToNearestMinute.Designer.cs +++ b/ErsatzTV.Infrastructure.MySql/Migrations/20260723061238_Add_ProgramSchedule_PadToNearestMinute.Designer.cs @@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace ErsatzTV.Infrastructure.MySql.Migrations { [DbContext(typeof(TvContext))] - [Migration("20260722194743_Add_ProgramSchedule_PadToNearestMinute")] + [Migration("20260723061238_Add_ProgramSchedule_PadToNearestMinute")] partial class Add_ProgramSchedule_PadToNearestMinute { /// @@ -406,6 +406,21 @@ namespace ErsatzTV.Infrastructure.MySql.Migrations b.ToTable("Channel", (string)null); }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelGraphicsElement", b => + { + b.Property("ChannelId") + .HasColumnType("int"); + + b.Property("GraphicsElementId") + .HasColumnType("int"); + + b.HasKey("ChannelId", "GraphicsElementId"); + + b.HasIndex("GraphicsElementId"); + + b.ToTable("ChannelGraphicsElement"); + }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelTemplate", b => { b.Property("Id") @@ -4739,6 +4754,25 @@ namespace ErsatzTV.Infrastructure.MySql.Migrations b.Navigation("Watermark"); }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelGraphicsElement", b => + { + b.HasOne("ErsatzTV.Core.Domain.Channel", "Channel") + .WithMany("ChannelGraphicsElements") + .HasForeignKey("ChannelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ErsatzTV.Core.Domain.GraphicsElement", "GraphicsElement") + .WithMany("ChannelGraphicsElements") + .HasForeignKey("GraphicsElementId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Channel"); + + b.Navigation("GraphicsElement"); + }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelTemplate", b => { b.HasOne("ErsatzTV.Core.Domain.FFmpegProfile", "FFmpegProfile") @@ -6784,6 +6818,8 @@ namespace ErsatzTV.Infrastructure.MySql.Migrations { b.Navigation("Artwork"); + b.Navigation("ChannelGraphicsElements"); + b.Navigation("Playouts"); }); @@ -6830,6 +6866,8 @@ namespace ErsatzTV.Infrastructure.MySql.Migrations { b.Navigation("BlockItemGraphicsElements"); + b.Navigation("ChannelGraphicsElements"); + b.Navigation("DecoGraphicsElements"); b.Navigation("PlayoutItemGraphicsElements"); diff --git a/ErsatzTV.Infrastructure.MySql/Migrations/20260722194743_Add_ProgramSchedule_PadToNearestMinute.cs b/ErsatzTV.Infrastructure.MySql/Migrations/20260723061238_Add_ProgramSchedule_PadToNearestMinute.cs similarity index 100% rename from ErsatzTV.Infrastructure.MySql/Migrations/20260722194743_Add_ProgramSchedule_PadToNearestMinute.cs rename to ErsatzTV.Infrastructure.MySql/Migrations/20260723061238_Add_ProgramSchedule_PadToNearestMinute.cs diff --git a/ErsatzTV.Infrastructure.Sqlite/Migrations/20260722194624_Add_ProgramSchedule_PadToNearestMinute.Designer.cs b/ErsatzTV.Infrastructure.Sqlite/Migrations/20260723061139_Add_ProgramSchedule_PadToNearestMinute.Designer.cs similarity index 99% rename from ErsatzTV.Infrastructure.Sqlite/Migrations/20260722194624_Add_ProgramSchedule_PadToNearestMinute.Designer.cs rename to ErsatzTV.Infrastructure.Sqlite/Migrations/20260723061139_Add_ProgramSchedule_PadToNearestMinute.Designer.cs index 18ec70c18..0ae06b798 100644 --- a/ErsatzTV.Infrastructure.Sqlite/Migrations/20260722194624_Add_ProgramSchedule_PadToNearestMinute.Designer.cs +++ b/ErsatzTV.Infrastructure.Sqlite/Migrations/20260723061139_Add_ProgramSchedule_PadToNearestMinute.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace ErsatzTV.Infrastructure.Sqlite.Migrations { [DbContext(typeof(TvContext))] - [Migration("20260722194624_Add_ProgramSchedule_PadToNearestMinute")] + [Migration("20260723061139_Add_ProgramSchedule_PadToNearestMinute")] partial class Add_ProgramSchedule_PadToNearestMinute { /// @@ -393,6 +393,21 @@ namespace ErsatzTV.Infrastructure.Sqlite.Migrations b.ToTable("Channel", (string)null); }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelGraphicsElement", b => + { + b.Property("ChannelId") + .HasColumnType("INTEGER"); + + b.Property("GraphicsElementId") + .HasColumnType("INTEGER"); + + b.HasKey("ChannelId", "GraphicsElementId"); + + b.HasIndex("GraphicsElementId"); + + b.ToTable("ChannelGraphicsElement"); + }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelTemplate", b => { b.Property("Id") @@ -4564,6 +4579,25 @@ namespace ErsatzTV.Infrastructure.Sqlite.Migrations b.Navigation("Watermark"); }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelGraphicsElement", b => + { + b.HasOne("ErsatzTV.Core.Domain.Channel", "Channel") + .WithMany("ChannelGraphicsElements") + .HasForeignKey("ChannelId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ErsatzTV.Core.Domain.GraphicsElement", "GraphicsElement") + .WithMany("ChannelGraphicsElements") + .HasForeignKey("GraphicsElementId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Channel"); + + b.Navigation("GraphicsElement"); + }); + modelBuilder.Entity("ErsatzTV.Core.Domain.ChannelTemplate", b => { b.HasOne("ErsatzTV.Core.Domain.FFmpegProfile", "FFmpegProfile") @@ -6609,6 +6643,8 @@ namespace ErsatzTV.Infrastructure.Sqlite.Migrations { b.Navigation("Artwork"); + b.Navigation("ChannelGraphicsElements"); + b.Navigation("Playouts"); }); @@ -6655,6 +6691,8 @@ namespace ErsatzTV.Infrastructure.Sqlite.Migrations { b.Navigation("BlockItemGraphicsElements"); + b.Navigation("ChannelGraphicsElements"); + b.Navigation("DecoGraphicsElements"); b.Navigation("PlayoutItemGraphicsElements"); diff --git a/ErsatzTV.Infrastructure.Sqlite/Migrations/20260722194624_Add_ProgramSchedule_PadToNearestMinute.cs b/ErsatzTV.Infrastructure.Sqlite/Migrations/20260723061139_Add_ProgramSchedule_PadToNearestMinute.cs similarity index 100% rename from ErsatzTV.Infrastructure.Sqlite/Migrations/20260722194624_Add_ProgramSchedule_PadToNearestMinute.cs rename to ErsatzTV.Infrastructure.Sqlite/Migrations/20260723061139_Add_ProgramSchedule_PadToNearestMinute.cs