From e8e3c4cba8ffa0056e984c113cfbb75319e00022 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 20 Sep 2024 16:21:09 +1000 Subject: v0.4-rc1 --- Migrations/PagerContextModelSnapshot.cs | 69 +++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 3 deletions(-) (limited to 'Migrations/PagerContextModelSnapshot.cs') diff --git a/Migrations/PagerContextModelSnapshot.cs b/Migrations/PagerContextModelSnapshot.cs index 879c13f..4ff5dc3 100644 --- a/Migrations/PagerContextModelSnapshot.cs +++ b/Migrations/PagerContextModelSnapshot.cs @@ -1,5 +1,6 @@ // using System; +using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; @@ -17,7 +18,7 @@ namespace PagerParser.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "7.0.8") + .HasAnnotation("ProductVersion", "8.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); @@ -41,6 +42,59 @@ namespace PagerParser.Migrations b.ToTable("GpsPositions"); }); + modelBuilder.Entity("PagerParser.Handlers.DiscordAlertChannel", b => + { + b.Property("DiscordAlertChannelId") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("DiscordAlertChannelId")); + + b.Property("ChannelId") + .HasColumnType("numeric(20,0)"); + + b.Property("GuildId") + .HasColumnType("numeric(20,0)"); + + b.Property("RequireMention") + .HasColumnType("boolean"); + + b.HasKey("DiscordAlertChannelId"); + + b.HasIndex("GuildId") + .IsUnique(); + + b.ToTable("DiscordAlertChannels"); + }); + + modelBuilder.Entity("PagerParser.Handlers.DiscordAlertSubscription", b => + { + b.Property("DiscordAlertSubscriptionId") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("DiscordAlertSubscriptionId")); + + b.Property("GuildId") + .HasColumnType("numeric(20,0)"); + + b.Property("PageDestination") + .IsRequired() + .HasColumnType("text"); + + b.Property("PrincipalId") + .HasColumnType("numeric(20,0)"); + + b.Property("PrincipalType") + .HasColumnType("integer"); + + b.HasKey("DiscordAlertSubscriptionId"); + + b.HasIndex("GuildId"); + + b.ToTable("DiscordAlertSubscriptions"); + }); + modelBuilder.Entity("PagerParser.PagerMessage", b => { b.Property("PagerMessageId") @@ -101,10 +155,13 @@ namespace PagerParser.Migrations .IsRequired() .HasColumnType("text"); - b.Property("MelwaysGrid") + b.Property("MapGrid") .HasColumnType("text"); - b.Property("MelwaysMapNo") + b.Property("MapNo") + .HasColumnType("integer"); + + b.Property("MapType") .HasColumnType("integer"); b.Property("Note") @@ -114,6 +171,10 @@ namespace PagerParser.Migrations .IsRequired() .HasColumnType("text"); + b.Property>("PagedServices") + .IsRequired() + .HasColumnType("text[]"); + b.Property("PagerMessage") .HasColumnType("integer"); @@ -123,6 +184,8 @@ namespace PagerParser.Migrations b.HasIndex("GpsPositionId"); + b.HasIndex("PageDestination"); + b.HasIndex("PagerMessage") .IsUnique(); -- cgit v1.3